Comment Tag Test

The following line is <!-- Comment --> It should not be displayed

Now we try a comment that contains a tag: <!-- Testing <H1>test</H2> --> If your browser handles tags in comments, nothing should appear between the end of this sentence and the word "Now" in the next paragraph.

Now we try nesting some comments: <!--<!-- Testing <H1>test</H2> --> Note that we only nest the starting tag for the comment. Since "-->" is defined to be the end of a comment, the comment should end as soon as the browser sees one -- there is no provision for nesting end tags in the HTML standard. Nothing should appear between this sentence and the horizontal rule if your browser can handle nested comments.


[HTML CD Home Page]

Vivian Neou, vivian@catalog.com
Copyright © 1995 Vivian Neou