Skip to main content

Posts

Showing posts with the label Basic Structure of HTML Document

Basic Structure of HTML Document

Basic Structure of HTML Document  The basic structure of an HTML document is given below: <HTML>         <HEAD>                  </HEAD>                 <BODY>                </BODY> </HTML> The above format shows that an HTML document starts with <HTML> tag and ends with </HTML> tag. It is also clear that an HTML document consists of two main sections:  Head Section Head section is used to specify a title of the web page, normally. There are some other uses of Head section too, like linking external style sheets and Java script code, etc. Head section starts with the <HEAD> tag and ends with the </HEAD> tag. <TITLE> tag is used to display a title of the web page on title bar of the web browser. Body Section Body section contains all the text and tags. It is used to specify the actual content of the web page. Body section starts with <BODY> tag and ends with </BODY> tag.