Structure of HTML program

Document Head & Title:

 

The <head> tag is used to compose the head of the document. It includes tags like title, script, style, meta and so on.

 

The <title> tag defines the title of the document. The <title> element is required in all HTML/XHTML documents.

 

Document Body:

 

The <body> tag describes the main position of the document. It contain some attributes that allow to control the overall appearance of the document by specifying a background color or background image (BGCOLOR, BACKGROUND), and the color of text, links, visited and activated links (TEXT, LINK, VLINK, ALINK).

 

Example:

 

<html>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>

 

Output:

 

 

 

Hyper text markup language by deepa & suriya