W3C home > Mailing lists > Public > www-validator@w3.org > July 2009

Re: [VE][65] add hint that <p> cannot have a block child like <p> or <div>

From: Lou King <lking@knob.com>
Date: Fri, 31 Jul 2009 09:14:20 -0600
Message-ID: <4A730A4C.9010808@knob.com>
To: www-validator@w3.org


Andreas Prilop wrote, On 7/31/2009 8:35 AM:
> On Fri, 31 Jul 2009, Simon Effenberg wrote:
>
>   
>> it would be helpful if the error message would also give a hint that
>> <p> can't have block elements inside itself.
>>     
>
> No, I rather believe that
> http://validator.w3.org/check?prefill=1&fragment=%3Cp%3E%3Cp%3E%3C/p%3E%3C/p%3E#result
> is pretty clear.
As is the HTML spec, paragraph 9.3.1 Paragraphs: the P element

The P <cid:part1.09010506.04040205@knob.com> element represents a 
paragraph. It cannot contain block-level elements 
<cid:part2.00000501.07010403@knob.com> (including P 
<cid:part1.09010506.04040205@knob.com> itself).
Received on Friday, 31 July 2009 15:15:15 GMT

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