|
By Eddy R.
09/21/99
HTML documents can contain
from as little as ten lines of code up to hundreds of lines of code.
As a rule of thumb, an HTML document should always contain comments.
You can use comments to document your markup, make notes for future
reference, and provide information for others who might work with
the same source code.
A comment line starts and ends with the following tags.
<! -- comment text -- >
The comment tags are legal within all HTML markup tags and as a
general rule they should be placed on a line apart from other HTML
text. Here is a quick example of how to use comment tags.
<html>
<head>
<meta name="title"
content="Using Comment Tags">
<title>Comment
your HTML Documents</title>
</head>
<body>
<!-- Link to Webbuilder101.com
-->
<a href="http://www.webbuilder101.com">Webbuilder</a>
<!-- Link to Webmaster's
e-mail address -->
<a href="mailto:webmaster@webbuilder101.com">E-mail</a>
</body>
</html>
|