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

7.3. The <li> Tag

It should be quite obvious to you by now that the <li> tag defines an item in a list. It's the universal tag for list items in ordered (<ol>) and unordered (<ul>) lists, as we discussed earlier, and for directories (<dir>) and menus (<menu>), which we discuss in detail later in this chapter.

Sidebar 3. <li>


Function:

Define an item within an ordered, unordered, directory, or menu list


Attributes:

CLASSONMOUSEDOWN
DIRONMOUSEMOVE
IDONMOUSEOUT
LANGONMOUSEOVER
ONCLICKONMOUSEUP
ONDBLCLICKSTYLE
ONKEYDOWNTITLE
ONKEYPRESSTYPE
ONKEYUPVALUE



End tag:

</li>; often omitted in HTML


Contains:

flow


Used in:

list_content



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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