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

<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.

Regards,
-- 
Masayasu Ishikawa / mimasa@w3.org
W3C - World Wide Web Consortium

Received on Saturday, 19 June 2004 22:11:07 UTC