W3C home > Mailing lists > Public > www-html@w3.org > April 2002

RE: Double hyphens ('--') in comments invalid

From: Jimmy Cerra <jimbofc@yahoo.com>
Date: Sun, 28 Apr 2002 15:05:56 -0400
To: "'Bjoern Hoehrmann'" <derhoermi@gmx.net>
Cc: <www-html@w3.org>
Message-ID: <000101c1eee7$bd274cd0$0100a8c0@locutus>
Ah, thank you!
I did some more research; the correct example is below (right?):

] <!--comment 1--  --comment 2--  --comment 3-- >

Here are the rules (as I understand them):
1. A comment block always starts with '<!'.

2. Individual comment begins and end with '--'.

3. There must not be any white space between the first comment and '<!'
   ***Hence, that's why the beginning is always '<!--'.***

4. The end of the comment block is denoted by a '>' after the last comment.
   *** Unlike the block's beginning, the end can be separated by white space.***

I hope I haven't spread any more misinformation...

---
Jimmy Cerra

P.S.  Should this be in news:comp.infosystems.www.authoring.html or
      an SGML/XML group???
---



-----Original Message-----
From: Bjoern Hoehrmann [mailto:derhoermi@gmx.net]
Sent: Sunday, April 28, 2002 10:43 AM
To: jimbofc@yahoo.com
Cc: www-html@w3.org
Subject: Re: Double hyphens ('--') in comments invalid

* Jimmy Cerra wrote:
>P.S.  I think I read somewhere that "--" separates comments in SGML, so the
>following is three comments:
>
><!-- comment 1 -- comment 2 -- comment 3 -->

No, " comment 2 " is character data, not a comment.
Received on Sunday, 28 April 2002 15:05:59 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:51 GMT