Saturday 10 June 2017

Structure of an HTML Document

The standard structure of an HTML document has two sections: Head and Body as follows....

Structure of an HTML document

  • The HTML documents starts with <HTML> tag and ends with </HTML> Tag. Everything is written in these tags. If the commands are not enclosed in tags, then a web browser will assume the commands as simple text                                          
  •  The <HEAD> is the first element contained inside the <HTML> element. it contains no text in itself. the header is where you put information that is important about the web page, but you cannot see it in the browser window.                     
  • The <TITLE> tag has to be given within the <HEAD> tags. it contains the title of the document. the <TITLE> tag displays the text that appears on top of the browser, but not in the actual viewing pane. it should be less than 64 characters.                 
  • The <BODY> tag contains the text, which gets displayed on the web page along with other tags and attributes. In the <BODY> tag. we use formatting elements, images, heading, list, etc.to enhance the appearance of a web page.

No comments:

Post a Comment