Format of HTML Program

In order to create HTML document simple open Notepad and write the HTML code in a new file. HTML document should include the structure tags, which provide the browsers with information about the document characteristics. All HTML document should include the five structure tags.

The <!DOCTYPE> tag :- The <!DOCTYPE> tag is first tag in every HTML document. This tag is tells the browser an HTML version with which the document complies.

The <HTML> tag :- The <HTML> tag is root of the HTML document. This tag is tells the browser that this is an HTML document. All other tags are included within <HTML> and </HTML> tag.

The <HEAD> tag :- The <HEAD> tag is contains the information about the document, including its Title, Scripts used, style definition and document description. This tag portion enclosed between the <HEAD< and </HEAD> tags is called the header.

The <TITLE> tag :- The <TITLE> tag is gives an HTML document title by which it is browsers and indexing robots. The title of the HTML document is given between <TITLE> and </TITLE>, show the title in bar of the browser window.

The <BODY> tag :- The <BODY> tag is encloses between the all tags, attributes and information. Use this tag, enter it below the closing </HEAD> tag ans above the closing </HTML> tag.