The Comment Tag


The comment tag is different from the other tags for the following reasons. It can be placed anywhere in the HTML file; inside the head section, inside the body section, or in between the head and the body. It does not end with a /. It starts with an <!-- and ends with an -->.

It is always a good idea to put comments into your source code. In this simple example the comments state who is the author, the creation date of the document and the date of most recent update.


<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>

I understand the comment tag. What is next?


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

Valid HTML 3.2!