W3C home > Mailing lists > Public > www-validator@w3.org > June 2004

Re: Valid XHTML

From: David Dorward <david@dorward.me.uk>
Date: Sat, 5 Jun 2004 22:30:59 +0100
Message-Id: <A3210F7E-B737-11D8-A28B-000A957E4F00@dorward.me.uk>
Cc: "'W3C'" <www-validator@w3.org>
To: Håvard Hvassing <havard@hvassing.com>

On 5 Jun 2004, at 20:37, Håvard Hvassing wrote:
> Shouldn’t this code be altered? I mean; it is both invalid and you  
> can’t use
> <p> inside a <div> tag.

[Snip copy of validator success message]

Wrong on both counts.

<http://validator.w3.org/check? 
uri=http%3A%2F%2Fdorward.me.uk%2Ftmp%2Fvalid11.xhtml>

<div> elements can contain <p> elements. (<p> elements cannot contain  
<div> elements, but the validator success message does not suggest you  
do that).

> Of course; those of the users who makes valid XHTML-pages can alter  
> this by
> themselves without problem, as Kynn Bartlett wrote.

As I said around the same time:  
<http://lists.w3.org/Archives/Public/www-validator/2004May/0313.html>

> However; how about replacing the <p>-tags with a <div>-tag?

There might be a case for that, but only one of semantics (can two  
words and a digit be considered a paragraph?), not of validity.


--
David Dorward
      <http://dorward.me.uk/>
<http://blog.dorward.me.uk/>
Received on Saturday, 5 June 2004 17:33:20 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:14 GMT