- From: David Dorward <david@dorward.me.uk>
- Date: Sat, 5 Jun 2004 22:32:56 +0100
- To: Håvard Hvassing <havard@hvassing.com>
- Cc: "'W3C'" <www-validator@w3.org>
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:23 UTC