Name
<li> — NN: 2, 3, 4 • MSIE: 2, 3, 4, 5 • HTML 4 • WebTV • Opera3
Synopsis
<li>...</li>
Defines an item in a list. It is used within the
<dir>, <ol>, and
<ul> list tags.
Attributes
The following attributes have been deprecated by the HTML 4.0 Specification in favor of style sheet controls for list item display.
type=formatChanges the format of the automatically generated numbers or bullets for list items.
Within unordered lists (
<ul>), the type attribute can be used to specify the bullet style (disc,circle, orsquare) for a particular list item.Within ordered lists (
<ol>), the type attribute specifies the numbering style (see options under<ol>listing below) for a particular list item.value=numberWithin ordered lists, you can specify the number that appears next to an item. Following list items will increase from the specified number.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access