Topic: nested lists invalid xhtml Pages that link to <a href="https://ozoneasylum.com/backlink?for=11028" title="Pages that link to Topic: nested lists invalid xhtml" rel="nofollow" >Topic: nested lists invalid xhtml\

 
Author Thread
slim___shady
Nervous Wreck (II) Inmate

From: canada
Insane since: Aug 2002

IP logged posted posted 08-20-2003 17:22 Edit Quote

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

IP logged posted posted 08-20-2003 18:30 Edit Quote
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

IP logged posted posted 08-20-2003 19:12 Edit Quote

Thanx HZR

That worked!

DL-44
Maniac (V) Inmate

From: under the bed
Insane since: Feb 2000

IP logged posted posted 08-20-2003 21:25 Edit Quote

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