Re: [CSS21] error in a sample code

Tab Atkins Jr. skriver:
> On Wed, Feb 27, 2013 at 3:31 PM, Salim BELHADDAD <info@salym.me> wrote:
>> Hi,
>>
>> I've spotted a minor error in the code located in the CSS 2.1
>> Specification document.
>>
>> Location :
>> 9.2.1.1 Anonymous block boxes
>>
>> Excerpt :
>> <DIV>
>>   Some text
>>   <P>More text
>> </DIV>
>>
>>
>> It seems that the </P> closing tag is missing in the fourth line.
>> Not a big issue but newbies may be misled because of the specific
>> character of this example.
> 
> That's not an error - the closing tag of a <p> element is optional in
> most cases.
> 
> ~TJ
> 
> 
> 
Very true, but people are still going to complain about it. Might as
well include the ending tag.

Received on Thursday, 28 February 2013 12:06:12 UTC