HTML5 Tutorial for beginners
HTML stands for Hypertext markup language it is used to display data over the internet or it is used to develop web pages, In this HTML5 tutorial for beginners learn all the concepts of html from basic to advanced with all the possible examples.
Network of networks
What is called the internet?
Internet is simply called network of networks, it is connection of computers around the world.
The internet started in the 1960s as the project for government researchers to share information. the computers in the 60s were large and immobile, till the innovation of internet, information shared using magnetic computer tapes.
Another reason for the innovation of internet was the heating up of the cold war, the soviet union's launched the sputnik satellite and it forces the U.S defence department to consider the development of the system that can share information even after the nuclear attack.
It was the ARPANET(Advanced Research Projects Agency Network), currently known as the Internet.
In that time it had limited membership to certain academic and research organization who had contracts with the defence department.
January 1, 1983 is considered as the official birthday of the internet.
Before the internet, computer networks did not have a standard way to communicate with each other, a new communications protocol was established that is called TCP/IP (Transfer control protocol/Internet protocol).
it allowed different kinds of computers on the difference network to talk to each other.
Types of internet protocol
There are different ways to retrieve information from the networks, www is one of the way, other connections are called protocol.
In other word, protocol is also called rules and regulation to share information.
File sharing protocol
FTP (File transfer protocol)
It was the first service of the internet to share file from one computer to other.
Nowadays putty is one the software that uses FTP to access files from one computer to other computer.
This method of internet communication protocol allow users to communicate with each other.
Multimedia information protocol
Hypertext transfer protocol
- It become the most popular protocol among peoples when it was developed in the late 1980s by the european lab for the particle physics in switzerland.
- it is most popular way to access information from the internet.
- it does not offer to download the file, also allow to jump from one site to other site through hyperlinks.
- the most sparkling feature of web is formated text.
Browsers and navigation
In the web files are access through the software that is called browser, it is an application software to run or view the web page,
Some of the popular browsers are
- Google chrome
- Mozilla firefox
Uniform resource location(URL) is an address of the resource over the internet, when the user surfing the internet, there is the location at the top of the browser that is also called the address bar, here user type the address of computer for that the user required to access information.
- http://www.capscom-technology.com(Turned into https)
Hypertext transfer protocol that tells the browser to look for the included web address over the internet.
- capscom-technology - domain name
- .com - domain
HTML5 tutorial for beginners
HTML stands for HyperText Markup Language, which is used to create web pages.
Software required to develop web pages?
- Code Editor
- Web Browser
This software is used to write the code of programming languages like HTML, PHP, Python, etc.
This software is used to run web pages.
Structure of web page
<title>Structure of web page</title>
Structure of web page.
Save the file as First_page.html
<!DOCTYPE html> tells to browser about the standard of the web page and ensures to support all HTML5 tags.
<html lang=”en”> define web page language to english, it is also root of web page.
it is called meta section of web page which contain all meta tags and resource file links like <title>, <link>, <script>, etc.
define the title of the web page that displays at the title bar of the browser.
it is the main part of the web page where actual data of application displayed and <body> tag define sectioning root of the application.
Content sectioning tags in HTML
- <h1> to <h6> all heading tags
This tag indicates about enclosing tag contain contact informatioin, address about person, people’s, and organisation.
24 Floor, Gandhi Road Delhi.
This tag indicates the enclosing tag contains information that is indirect to the main content.
Find best resource at https://www.freecodepoint.com
This tag can be used to show forum posts, blog posts, and stories.
…. here can write story, post
This tag contains introductory information about the web page and company logo, search form, etc.
This tag contains website copyright data, about the author, links to related documents.
2020 All rights are reserved.
<h1> to <h6> heading tags
Heading tags are used to writing the heading of web pages. <h1> is top-level heading and <h6> is lower-level heading.
This tag contains the dominant content of the body of a document.
This tag represent a section that contains navigation links.
Represents a section of the web page.
A part of section
These text tags define data.
- <dl>, <dt>, <dd>
used to quote a message or passage.
I am not handsome but I can give my hand to someone who need help.. Because beauty is required in heart not in face!
– A. P. J. Abdul Kalam
It is called a division tag, also called a container tag, that has no effect on content like <p> tag.
Dream is not that which you see while sleeping it is something that does not let you sleep
<dl>,<dt>, <dd> tag
<dl> create description list
<dt> create data terms
<dd> describe data or terms.
<dt>Dream, Dream Dream. Dreams transform into thoughts and thoughts result in action.</dt>
<dd>- A. P. J. Abdul Kalam</dd>
Never let me climb so high
That I am unable to embrace another stranger,
Deliver me ever from such arrogance</dt>
<dd>- Atal bihari vajpayee</dd>
<ol> tag stands for ordered list, that is display an ordered list, and <li> stands for list.
Note: <ol> tags has attributes type, start
the type attribute has value one of the given value [1, a, A, i, I]
<h2>Popular Web Browsers</h2>
<ol type=”A” start=”3″>
<ul> tag stands for unordered list, that is display unordered list, and <li> stands for list.
Note: <ul> tag has attributes type
The type attribute has value of the given value [“disk”, “circle”, “square”]
<h2>List of application softwares</h2>
<li>MS Power point</li>
This is called paragraph tag, mainly used to write paragraphs, posts, articles, it is also called a container tag.
All physical components which are attached to the computer are called Hardware.
<hr> tag stands for Horizontal tag, this tag insert an horizontal tag.
This tag display data as write within this tag, it can be used to display formatted text on the web page.
This tag represents self-contained content, with optional <figcaption> tag.
Describe the rest of the content of its parent tag, also represents caption or legend for content.
<img src=”yoga.jpg” alt=”Yoga”>
Inline semantic tags
Inline tags mean a tag that has an effect in a line and has no 100% width is called inline tags.
and those tags that describe its meaning to both browser and developer are called semantics tags.
Popular semantics tags are:
use to write small text line print, copyright content in small format.
© All rights are reserved.
<strong> tag create the importance of text and makes text some bold, it is also used to display a text for seriousness, urgency, and important text.
Welcome to <strong>FreeCodePoint.com</strong>
It is called an anchor tag, which is used to create an internal, external link.
<a> tag has three main attributes.
- href [ used to create a link ]
- name [used to create bookmark ]
- target [used to open a page in same, new tab ], has two value _blank (open a link in a new tab), _self (open a link in the same tab)
<a href=”https://freecodepoint.com” target=”_blank”>Freecodepoint.com</a>
where href is hypertext reference which specifies an address of source where the user will visit after clicking on this link and target=”_blank” specify where a link will open, as you can see we have write _blank, it means this link file will open in new tab.
This tag is an inline tag, has an effect in a current line, can be used to format some text within a line, and it has no special effect like italic, underline, and bold tags.
This tag format a text and display content as computer code, it is used to write any computer code within it.
This tag used to display time content.
This is also called a highlighter tag, it highlights contained text.
Display emphasizes text like italic or screw text.
<em>Welcome to freecodepoint.com</em>
This tag breaks a line.
Abbreviation element used to write acronym and abbreviation of words.
<abbr>Central Processing Unit</abbr>
Used to describe creative work
Inventor of WWW was <cite>Tim Berners LEE</cite>
- <del> tag
- <ins> tag
Pass a line through a text
Rs. 3,000Rs. 2,000
<span>Jeans <del>Jeans Rs. 3,000</del> Rs. 2,000</span>
Insert an underline line for selected text.
A computer is an electronic machine.
<p>A computer is an <ins>electronic machine</ins></p>
Table has number of tags to define table structure on the web page.
- <thead> – Table head
- <tbody> – Table body
- <tr> – Table row
- <th> – Table heading
- <td> – Table data
- <caption> – Table caption, contain text or title about table data.
- <tfoot> – Table footer
<table border=”1″ width=”100%”>
Interactive elements tags
Interactive tags provide tools collapse show hide content.
A Computer is an electronic machine.
It will provide output as when the user will click on the summary text that is Computer, then the definition of the computer will show to the user.
|name||Define name of form|
|action||Define where form data will submit|
|method||Submit method it can be either GET OR POST|
|enctype||has value "multipart/form-data", it is need when form contain file input field.|
This tag is used to get data from user.
|Attribute name||Used for||Values|
|type||Define type of input field||
|name||To get data from form input field||name of input field (user defined)|
|value||To set default data in the input field||predefined value of input field(user defined)|
Special input attributes
|placeholder||Display ghosted text|
|required||Make input field value required|
|disabled||Make input field not editable/accessible|
|min||Define input field minimum value|
|max||Define input field maximum value|
|step||Define step value|
|multiple||Define number of items can be selected|
|maxlength||Define maximum no of characters can be input in input field|
|minlength||Define minimum no of characters can be input in input field|
|checked||Make checkbox in checked state|
|selected||Make option selected|
Make input field value to be read only.
<source src="" type="audio/mp3"/>
Your browser does not support audio tag, please update browser or install another one
<source src="" type="audio/mp4"/>
Your browser does not support video tag, please update browser or install another one
Embed other document within current document.
<iframe src="other document source" width="100%" height="500">