W3C home > Mailing lists > Public > www-style@w3.org > February 2013

Re: [CSS21] error in a sample code

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 28 Feb 2013 01:08:41 -0800
Message-ID: <CAAWBYDD0_Wgw47XwFNm8Twb7ZApLNJxYTJY4wD8oCzPFvstRtA@mail.gmail.com>
To: Salim BELHADDAD <info@salym.me>
Cc: www-style list <www-style@w3.org>
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
Received on Thursday, 28 February 2013 09:09:31 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:06 GMT