Name
<li> — NN 2, 3, 4, 6 MSIE 2, 3, 4, 5, 5.5, 6 HTML 4.01 WebTV Opera5
Synopsis
<li>...</li>
(end tag optional)
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=format Deprecated. Changes 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 the<ol>listing) for a particular list item.
-
value=number Deprecated. Within ordered lists, you can specify the number of an item. Following list items 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