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= format

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, or square) 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= number

Within ordered lists, you can specify the number (n) of an item. Following list items will increase from the specified number.

Get Web Design in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.