W3C home > Mailing lists > Public > www-html@w3.org > July 2005

Re: "style" question - Lists inside paragraphs

From: Orion Adrian <orion.adrian@gmail.com>
Date: Tue, 19 Jul 2005 18:24:22 -0400
Message-ID: <abd6c801050719152433a76f65@mail.gmail.com>
To: www-html@w3.org

XHTML2 corrects this by allowing lists inside paragraphs. In earlier
versions either of the solutions you just listed would be alright.

On 7/19/05, Stephen Brooks <sb@stephenbrooks.org> wrote:
> 
> Suppose I want to write some things:
> 1. One
> 2. Two
> 3. Three
> ...in a paragraph, like I just did.  How should I do that in (X)HTML?
> 
> My natural impulse was to write a <p> with an <ol> embedded inside, but once
> I started validating my work I found that this was illegal and had to resort
> to an <ol> with a little <p> either side, or _perhaps_ a <div> with an <ol>
> nested inside.  But grammatically this seems a shame as it's really still a
> paragraph.
> 
>     -Stephen
> 
> 
> 


-- 

Orion Adrian
Received on Tuesday, 19 July 2005 22:25:24 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:16:03 GMT