• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 14. Working with Links, Lists, a... > The <LI> Element: List Items

The <LI> Element: List Items

You use <LI> elements to create list items; you place <LI> elements inside <OL> and <UL> elements, one for each item in the list. You can find the JavaScript properties for the <LI> element in Table 14.5. Remember that JavaScript’s core HTML properties, methods, and events, which we covered in Chapters 5 and 6, apply to this element as well.

Table 14.5. The Properties of the <LI> Elements (See Chapters 5 and 6 for the JavaScript core HTML properties, methods, and events that also apply to this element.)
Property NS2 NS3 NS4 NS6 IE3a IE3b IE4 IE5 IE5.5 IE6
type    x   x x x x
  Read/write
  This property specifies the label for the list item, and can be set to any type value for <OL> and <UL> elements. See Tables 14.3 and 14.4.
value    x   x x x x
  Read/write
  In an ordered list, the value is the number or letter that labels the list item. Note that changing the value of an item also changes the numbering/lettering of all following items.



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint