HTML Tags


Lets start learning tags that you used in previous post. 

Did you saw the result on browser?
Did you liked it?

Any ways lets start with tags.

Very first line in HTML file show version of your HTML. 
<!DOCTYPE html>

Above line tells your browser that in which version of HTML you are going to write your script. 

Current version of HTML is 5.

<HTML>
Root or Parent tag in any html page is <HTML>. All your html script lies between html tag
Every HTML tag opens like <TAGNAME> and closes like </TAGNAME>
e.g. <HTML></HTML>


<head>
<title>

This two tags tells browser what to show in browser header. 
 e.g  
<head>
<title>Page Title</title>
</head


Next Important tag is body 
main html script which renders actual screen lies here in body tag. 
e.g. 
 <body></body>



From w3school more details.
  • The <!DOCTYPE html> declaration defines this document to be HTML5
  • The <html> element is the root element of an HTML page
  • The <head> element contains meta information about the document
  • The <title> element specifies a title for the document
  • The <body> element contains the visible page content
  • The <h1> element defines a large heading
  • The <p> element defines a paragraph

Comments

Popular posts from this blog

HTML Template

First HTML Script