| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
volkswagen yellow & gold
Join Date: Apr 2003
Location: london, england.
Posts: 6,214
|
list elements
i've looked through the spec but its not clear. it tells you what you how they work but not what you're not allowed to do. question: does a <LI> have to site within a <UL> ? eg: proper way of doing it <UL> <LI>element 1</LI> <LI>element 2</LI> </UL> is this allowed? <LI>element 1</LI> <LI>element 2</LI> it means that the list is not indented. thoughts, or preferably (but unlikely knowing you lot) answers. ta. brn. |
|
|
|
|
|
#2 (permalink) |
|
Dr. Lucien Sanchez
Join Date: Mar 2003
Location: UK
Posts: 5,632
|
<ul> is 'unordered list'. <li> is 'list item'. And fwiw, <ol> is 'ordered list' and will give you numbers instead of bullets. The <li> tag is a component of list tags (such as ul, ol etc), so yes - it should be within the <ul> </ul>. You can easily style lists with css though, if you want to lose the indent. |
|
![]() |