NS IE TV

<!-->

Used to insert comments in the HTML source which will be ignored by the browser. All HTML tags inside the comment will be ignored. You can use this tag to put comments in your pages, which can help you when you have to edit the source later.
HTML generating programs sometimes store program-specific information inside comments, so they will not be visible, but still available to the program.

This tag is not a container, but inside it you can put one or more comments, by surrounding with "--". The end of the tag is indicated with the sequence -->.

If the text you want to comment doesn't contain HTML tags you can use the COMMENT tag.

A common use of this tag is to comment the text inside the SCRIPT and STYLE tags to hide it from older browsers that do not support a scripting language.

** None **

 
Source:
The next lines contains 2 comments, which will not be
shown if your browser supports the tag :<BR>
<!-- This is a comment and will be ignored --
  -- You can put anything in a comment, including tags: <HR> -->
 
Result: The next lines contains 2 comments, which will not be shown if your browser supports the tag :

 
Source:
<SCRIPT language="JavaScript">
<!-- Begin hiding contents from older browsers
function ShowMessage(Msg) {
  alert(Msg)
}
// End hiding the contents -->
</SCRIPT>
<FORM>
<INPUT type=BUTTON value="Push me!" onClick="ShowMessage('Hi there')">
</FORM>
 
Result:

 
Source:
<STYLE type="text/css">
<!-- Hide style sheets from browsers that don't support this tag.
H1 {color: red;}
}
End hiding the STYLE tag -->
</STYLE>
 
Result:


Statistics Copyright © 1996, 1997 Rob Schlüter
Last updated 1997/08/26
Email: schluter@knoware.nl