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

Re: "style" question - Lists inside paragraphs

From: Stephen Brooks <sb@stephenbrooks.org>
Date: Mon, 15 Aug 2005 15:25:34 +0100
Message-ID: <000b01c5a1a5$365edeb0$013af682@ndv138>
To: <orion.adrian@gmail.com>, <tina@greytower.net>
Cc: <www-html@w3.org>

Thanks to Orion and Tina for their replies - for some reason I'm not getting 
these delivered to me so only saw them when I checked back to the list on 
the web interface!

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

OK, fine, good.

--[Two paragraphs with an ordered list inbetween. Most definitions of a 
paragraph I've ever heard of does not include ordered lists.  In XHTML 2, it 
has been suggested that paragraphs can contain ... many things which are not 
usually considered paragraphs. It is my hope that this will be corrected 

I'm afraid I disagree with you there.  I think the idea should be to let the 
markup reflect "semantically nested" things.  So in my example, I 
interrupted a sentence (and a paragraph) in order to break out into a list. 
But the list was _part of_ the paragraph, I could equally well have written 
it inline: one, two, three; like that.  As far as layout is concerned, you 
are right, it would normally be layed out as two paragraphs with a list 
between, but my impression was that XHTML was supposed to reflect intention 
and not formatting.

In fact, even considering layout, it's probably better to allow the <ol> to 
be nested inside <p>.  Imagine you had a paragraph style that was heavily 
left-indented and perhaps in a different font.  You would want any lists 
within such paragraphs to inherit that style as well, otherwise they would 
stick out into the left "margin".

Received on Monday, 15 August 2005 14:26:04 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:06:11 UTC