html5 Site Icon CSS3 Site Icon CSS Site Icon

HTML4 Reference

HTML <!--...--> (comment) tag

Definition

The <!--...--> (comment) tag allows us to document our code with useful comments and is ignored by browsers. Just replace the ellipses with the comments you want to enter. The tag can be used multiples times in a HTML document.

Example


<html xmlns="http://www.w3.org/1999/xhtml">
<!-- The Basic Structure of a HTML document follows -->
<!-- Everything goes between the start and end HTML tags. -->
 

<head>
<!-- The header contains meta information pertaining to the HTML document as well 
as a title and other stuff we will discuss in HTML4 Intermediate/Advanced lessons.
External files such as CSS stylesheets and JavaScript files are also imported in
the header section of our HTML file. -->

  <title>A Title which will appear in the Windows title bar.</title>
</head>

<body>
<!-- The content of the web page appears in the body section. -->

</body>

<!-- We complete the HTML file with the closing HTML tag. -->
</html>

Required Attributes

N/A

Optional Attributes

N/A

Common Attributes

N/A

Language Attributes

N/A

Event Attributes

N/A



Next >>  <!DOCTYPE> tag

go to home page Homepage go to top of page Top