W3C home > Mailing lists > Public > www-html@w3.org > November 1999

Lists within Paragraphs

From: Kjetil Kjernsmo <kjetil.kjernsmo@astro.uio.no>
Date: Sat, 27 Nov 1999 19:03:10 +0100 (MET)
To: www-html@w3.org
Message-ID: <Pine.OSF.4.05.9911271840380.4092-100000@rasalhague>
Dear all, 

There is an issue that has bothered me for some time: Sometimes, lists,
particularily ordered lists, are a natural part of a paragraph. In HTML4,
P must be closed (or is closed if it is not done explicity) before OL is
opened. 

For example, I might want to say:
Note
  1.something important, 
  2.something even more important, 
  3.something veeeery important!

Here, the paragraph starts with "Note" and ends with "!". Nowadays, it
would however have to be marked up with 
<P>
Note 
</P>
<OL>
	<LI>something important,</LI>
	<LI>something even more important,</LI>
	<LI>something veeeery important.</LI>
</OL>
That is, the single word "Note" is a paragraph by itself. It doesn't make
much sense. 

In principle, it should not be anything that prevents me from rendering
lists like this like this:
Note a) something important, b) something even more important, 
c) something veeeery important!
In this example, it is even more apparent that this is a paragraph. I
realize this is possible to do with CSS1, but that is not the point. The
point is that the structure of the document is that the list is a part of
the paragraph, but the HTML prevents me from marking up the document so
that this is apparent to a UA. 

Would it be possible for P to contain %list? 
I realize other problems may occur (such as that LI may contain P but P
may not contain another P), but if there are ways around this, it would
help a lot. 

Best,

Kjetil
-- 
Kjetil Kjernsmo
Graduate astronomy-student                    Problems worthy of attack
University of Oslo, Norway            Prove their worth by hitting back
E-mail: kjetikj@astro.uio.no                                - Piet Hein
Homepage <URL:http://www.astro.uio.no/~kjetikj/>
Webmaster@skepsis.no 
Received on Saturday, 27 November 1999 13:04:21 GMT

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