Re: Comment Declarations

Daniel W. Connolly (connolly@beach.w3.org)
Tue, 30 May 95 15:41:14 EDT

I thought James Clark's prose was nice: accurate, yet short
and to the point. I just changed "one or more" to "zero or more"
to allow for <!>.

See what you think:

http://www.w3.org/hypertext/WWW/MarkUp/html-spec/html-spec_2.html#SEC13

|Comments
|
|To include comments in an HTML document, use a comment declaration. A
|comment declaration consists of `<!' followed by zero or more comments
|followed by `>'. Each comment starts with `--' and includes all text
|up to and including the next occurrence of `--'. In a comment
|declaration, white space is allowed after each comment, but not before
|the first comment. The entire comment declaration is ignored.
|
|For example:
|
|<HEAD>
|<TITLE>HTML Comment Example</TITLE>
|<!-- Id: html-sgml.sgm,v 1.5 1995/05/26 21:29:50 connolly Exp -->
|<!-- another -- -- comment -->
|<!>
|</HEAD>
|<BODY>
|<p> <!- not a comment, just regular old data characters ->

Dan