httpd-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James A. Sutherland <>
Subject Re: Trailing slashes in HTML tags?
Date Thu, 28 Jun 2001 10:42:20 GMT
On Thu, 28 Jun 2001 12:18:19 +1000, you wrote:

>On Wed, Jun 27, 2001 at 10:36:48AM -0500, William A. Rowe, Jr. wrote:
>> My mistake, try that again...
>> <p/>test</p> is illegal for all older parsers.
>> <p />test</p> is legal for all older parsers, and the '/' keyword is

It parses, but it's wrong. Either you use <foo /> OR you use
<foo>bar</foo>: the trailing slash indicates there is no closing tag
to follow.

>> Bill
>Ok, but what about this case (from index.html.en):
><hr width="50%" size="8" />
><div align="center"><img src="apache_pb.gif" alt="" /></div>

That's as it should be: div, hr and img all have closing tags - an
explicit </div>, and trailing slashes on hr and img.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message