[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-docs
Subject:    Re: Trailing slashes in HTML tags?
From:       "James A. Sutherland" <jas88 () cam ! ac ! uk>
Date:       2001-06-28 10:42:20
[Download RAW message or body]

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

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.


James.

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic