Topic: nested lists invalid xhtml (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=11028" title="Pages that link to Topic: nested lists invalid xhtml (Page 1 of 1)" rel="nofollow" >Topic: nested lists invalid xhtml <span class="small">(Page 1 of 1)</span>\

 
slim___shady
Nervous Wreck (II) Inmate

From: canada
Insane since: Aug 2002

posted posted 08-20-2003 17:22

i have nested lists. But they turn out to be invalid xhtml when verified on w3c. The code is something like this

code:
<ul>
<li>item one</li>
<li>item two</li>
<ul>
<li>sub-item one</li>
<li>sub-item two</li>
</ul>
<li>item three</li>
<li>item four</li>
</ul>


How can I have valid xhtml as well as nested lists?



[This message has been edited by slim___shady (edited 08-20-2003).]

HZR
Bipolar (III) Inmate

From: Cold Sweden
Insane since: Jul 2002

posted posted 08-20-2003 18:30
code:
<ul>
<li>item one</li>
<li>item two
<ul>
<li>sub-item one</li>
<li>sub-item two</li>
</ul>
</li>
<li>item three</li>
<li>item four</li>
</ul>



slim___shady
Nervous Wreck (II) Inmate

From: canada
Insane since: Aug 2002

posted posted 08-20-2003 19:12

Thanx HZR

That worked!

DL-44
Maniac (V) Inmate

From: under the bed
Insane since: Feb 2000

posted posted 08-20-2003 21:25

Yup, just a slight change in the ordering in XHTML to more logically express the fact that they are nested.





Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu