HEAD and BODY Tags


HTML documents are separated into two sections, the head and the body. The beginning of the head section is marked by the <HEAD> tag, and the end of the head section with the </HEAD> tag. Likewise, the beginning of the body section is marked by the <BODY> tag, and the end of the body section with the </BODY> tag. The example below highlights these tags.

<HTML>
<HEAD>
<TITLE>My Home Page</TITLE>
</HEAD>

<!-- Written by me -->
<!-- Created:  yesterday -->
<!-- Last modified:  today -->

<BODY>

This is where the text goes. 

</BODY>
</HTML>

Information about the document, such as the title, goes in the head section. What gets displayed in the browser window goes in the body section of the document.

I understand the HEAD and BODY tags. What about the TITLE tag?


[INDEX] [PREVIOUS] [NEXT PAGE] [CHAPTER 1]

Valid HTML 3.2!