On 29 Jun 2001, at 17:40, Anees Shaikh <[EMAIL PROTECTED]> wrote:
> Henrik says that xhtml probably doesn't require a space before /> to
> close the tag. But just for anecdotal evidence, all of the sites I've
> had this problem with do in fact put a space before the /> . I guess
> the requirement of quoting attrs will fix it (assuming it is
> followed).
That's for compatibility with older, non-XHTML-aware browsers. Such
browsers would fail to interpret tags such as <br/> correctly, but
most of them don't seem to mind <br /> as they just treat the / as an
unknown attribute of the tag. See section C.2 of the XHTML 1.0 spec
for more details.
XTHL 1.0 spec (in html): <http://www.w3.org/TR/xhtml1/>
Appendix C of same: <http://www.w3.org/TR/xhtml1/#guidelines>