httpd-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jaime E . Villate" <vill...@fe.up.pt>
Subject Re: Trailing slashes in HTML tags?
Date Thu, 28 Jun 2001 09:46:08 GMT
On Wed, Jun 27, 2001 at 10:03:08PM -0500, William A. Rowe, Jr. wrote:
> Since <hr/> is definately NOT legal HTML, the
> <hr /> syntax was adopted, it is a legal unbalanced XML tag, and is also
> legal HTML.
I agree. I sometimes use also <hr></hr> which is legal XHTML and legal HTML
(the unknown </hr> HTML tag is ignored)

> So <HR /> is the same as <HR>, and both are legal HTML.  Only <HR />
is
> legal XML.

You should be very careful here. <HR /> is a valid XML tag, but it is not
valid XHTML. In XHTML tags are defined in lower-case, so you should use <hr />
and not <HR />

Jaime Villate

---------------------------------------------------------------------
To unsubscribe, e-mail: apache-docs-unsubscribe@apache.org
For additional commands, e-mail: apache-docs-help@apache.org


Mime
View raw message