Comments
As your HTML pages grow, so will their complexity. Maintaining such complex
pages can be quite a problem if there is no way to add documentation to these
files.
Fortunately, HTML provides tags through which you can add comments to
various sections of your scripts.The starting comment tag is <!— (that’s the ‘lesser
than’ sign followed by an exclamation mark and two dashes) and the ending tag
is —>.
<!-- This tag displays the text in the source
but not in the Internet Explorer display -->
Example
<HTML>
<HEAD>
<TITLE>Example 5.08</TITLE>
</HEAD>
<BODY>
<H1>Special Formats</H1>
<!— - Comments line - This text will not
display in the Netscape display - —>
<BLOCKOUT>This text block indented and
display as a separate paragraph.
</BLOCKOUT>
<PRE>
When display this text
will look exactly as it
does here ....
</PRE>
<ADDRESS>
I can be contacted at
html@html-book.lk
</ADDRESS>
</BODY>
</HTML>
Block quotes
If you wish to introduce some large body of text and make it stand out from
the rest, you should put it between <BLOCKQUOTE> - </BLOCKQUOTE>. The
enclosed text will be indented from the left and right margins and also adds space at
the top and bottom quite like this paragraph.
<BLOCKQUOTE>
This is tag display the text block indented and as a
separate paragraph.
</BLOCKQUOTE>
Pre-formatted Text
<PRE>—</PRE> The <PRE> tag retains the pre-formatted appearance of
the text in the HTML file, including any line breaks or
spaces. Text is usually displayed in a fixed width font.
Address
<ADDRESS>—</ADDRESS> The <ADDRESS> tag is used for information
such as addresses, authorship, and so forth. The
text is usually italicized and in some browsers it
is indented.
The <ADDRESS> - </ADDRESS> tag is a logical formatting element. You
should use this to include any address. This should NEVER be used for physical
layout as it may be rendered differently by the browsers.
<ADDRESS>
I can be contacted at
info@ucsc.cmb.ac.lk
</ADDRESS>
No comments:
Post a Comment