Now we start making a webpage by creating a file named index.html
Index.html is a special file name which is presented where the website root address is typed.
A Basic HTML Page
<!Doctype html> --It specifies this is a html5 document
<html> --Root element of an html page/document.
<head> --it contain metadata of the document(Metadata-information about the data)
<title>First webpage</title> --It define title of the document.
</head> -- Heading closing tags.
<body> -- This is the main body of the html doc.
<h1>his is a heading tag<h1> --Heading tag.
<p>This is a paragraph</p> -- This is a paragraph tag.
</body> --Body closing tag.
</html> --HTML closing tag.
A tag is like a container that have content or tags.
Head & body tags are the children of HTMl tag.
Some html tags have no content .This is called empty tags example – <br>(break tag).
Every element have both opening and closing tags with content in between opening and closing tags.
HTML is the parent of Head & body tag in webpage.
We can used (.htm or .html ) as an extension for creating html document.
Comments in HTML Documents
Comments are basically used in real life project for commenting codes.
Comments in html are used to mark text which is not showing the output to the user.
It used for better understanding purpose.
HTML is a case sensitive language.
it means <P> and <p> both tags are same meaning.
But we always prefer to use small case.
To learn all basic tags that are used in html Click Here