An HTML document begins with 4 sets of nested container tags.
<HTML>
<HEAD>
<TITLE>
Page Title
</TITLE>
</HEAD>
<BODY>
Text of document.
</BODY>
</HTML>
- <HTML>
- The <HTML> </HTML> container surrounds, or
contains, the entire HTML document, which is displayed at the
top of the Web browser.
- <HEAD>
- The <HEAD> </HEAD> container
contains the document's header information, which specifies
how an HTML document is to be interpreted.
- <TITLE>
- The <TITLE> </TITLE> container lives within the
HEAD container and contains the title of the document.
- <BODY>
- The <BODY> </BODY> container contains the main
content of the HTML document.