W3C home > Mailing lists > Public > public-html-xml@w3.org > January 2011

[cowan@mercury.ccil.org: Questions about HTML void elements]

From: John Cowan <cowan@mercury.ccil.org>
Date: Thu, 20 Jan 2011 12:01:01 -0500
To: public-html-xml@w3.org
Message-ID: <20110120170101.GA678@mercury.ccil.org>
These are (some of) my beliefs about HTML void elements.  Can someone
indicate whether any of them are false?

1) There are 14 void elements, namely area, base, br, col, command,
   embed, hr, img, input, keygen, link, meta, param, and source.

2) The form "<br>" is valid HTML.

3) The form "<hr>" is valid HTML.

4) The form "<br/>" is *invalid* HTML.

5) The form "<br/>" means the same as "<br>".

6) The form "<hr/>" is *invalid* HTML.

7) The form "<hr/>" means the same as "<hr>".

8) The form "<br></br>" is *invalid* HTML.

9) The form "<br></br>" means the same as "<br><br>".

10) The form "<hr></hr>" is *invalid* HTML.

11) The form "<hr></hr>" means the same as "<hr>".

12) All other void elements behave like hr.

13) The list of void elements will never grow.

John Cowan   cowan@ccil.org
    "Mr. Lane, if you ever wish anything that I can do, all you will have
        to do will be to send me a telegram asking and it will be done."
    "Mr. Hearst, if you ever get a telegram from me asking you to do
        anything, you can put the telegram down as a forgery."
Received on Thursday, 20 January 2011 17:01:29 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 19:58:27 UTC