W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2004

Re: help on HTML4.0 validation

From: Rijk van Geijtenbeek <rijk@opera.com>
Date: Thu, 29 Jan 2004 09:26:38 +0100
To: "HTML-tidy list" <html-tidy@w3.org>
Message-ID: <opr2i22orsicz8n2@JOL>

On Thu, 29 Jan 2004 00:00:11 -0600, Rajesh R Kathiru <kathiru@uab.edu>  
wrote:

> Is it possible to have <ol> and <ul> within a <ol> tag and still the
> file be a valid HTML 4.0 ?

You can't have a list *directly* in another list. But it is no problem at  
all to nest a list inside a 'list item'.


Wrong:

<ul>
   <li>item 1</li>
   <li>item 2</li>
     <ul>
      <li>item 2.1</li>
      <li>item 2.2</li>
     </ul>
   <li>item 3</li>
</ul>

Good:

<ul>
   <li>item 1</li>
   <li>item 2
     <ul>
      <li>item 2.1</li>
      <li>item 2.2</li>
     </ul>
   </li>
   <li>item 3</li>
</ul>



-- 
The Web is a procrastination apparatus:    |  Rijk van Geijtenbeek
It can absorb as much time as              |   Documentation & QA
is required to ensure that you             |   Opera Software ASA
won't get any real work done.  - J.Nielsen | mailto:rijk@opera.com M
Received on Thursday, 29 January 2004 03:27:38 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:15:53 UTC