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

"style" question - Lists inside paragraphs

From: Stephen Brooks <sb@stephenbrooks.org>
Date: Tue, 19 Jul 2005 23:17:17 +0100
Message-ID: <003301c58caf$a06a8cb0$6a69b351@computer>
To: <www-html@w3.org>

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 
Received on Tuesday, 19 July 2005 22:17:21 GMT

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