Nesting Lists
by Thomas Rumley <trumley(at)softhome.net>
|
Date: |
Thu, 23 May 2002 17:21:27 -0400 |
To: |
hwg-basics(at)hwg.org |
|
todo: View
Thread,
Original
|
|
Nesting Lists requires a few basic items.
First, there is no need to close list items (<LI>). It's simply a waste of
time and does nothing for you. When the browser hits a second <LI> or
closing </ol> is assumes a closing list item tag.
So, technically, you are placing a nested list inside a list item, don't
let it confuse you. Just remember that you must complete each nested list
before you can close its "parent" list. this works alot like a frameset
page does. Indent each nested list and you'll find it much easier to keep
track of all the necessary parts.
Remember that a list is a container element so is must have complimenting
closing tags. Each nested list must also have an opening and closing tag.
<OL>
<LI>Horses
<LI>Dogs
<LI>Cats
<UL>
<LI>Persion
<LI>Tabby
<LI>Tiger
</ul>
<li>Snakes
</ol>
HTML: hwg-basics mailing list archives,
maintained by Webmasters @ IWA