W3C home > Mailing lists > Public > www-html-editor@w3.org > April to June 2004

Re: May be an error in XHTML1.0 2nd edition

From: Masayasu Ishikawa <mimasa@w3.org>
Date: Sun, 20 Jun 2004 11:11:04 +0900 (JST)
Message-Id: <20040620.111104.41641378.mimasa@w3.org>
To: www-html-editor@w3.org

<maujorcss@maujor.com> wrote:

> Please look at: http://www.w3.org/TR/2002/REC-xhtml1-20020801/#h-4.6
> and close look at:
> CORRECT: terminated empty elements
> <br/><hr/>
> It seems that correct is:
> <br /><hr />

No, there's nothing wrong with the former syntax in XML.  The latter
syntax is only necessary when you serve your XHTML documents as
'text/html' and follow HTML Compatibility Guidelines, in particular
Appendix C.2.  It's perfectly OK to use the former syntax for XHTML
documents served as XML.

Masayasu Ishikawa / mimasa@w3.org
W3C - World Wide Web Consortium
Received on Saturday, 19 June 2004 22:11:07 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:08:53 UTC