List item

li

One li element is used for each item in a numbered or bulleted list.

The "li" semantax is implied and may be omitted. See the second example below.

Examples

h1 Sonoma County Appellations
h2 Windswept Regions
ol {
li Fort Ross - Seaview
li Sonoma Coast
li Petaluma Gap
}

h2 Inland Valleys
ul {
li Rockpile
li Dry Creek Valley
li Chalk Hill
li Russian River Valley
li Green Valley
}
Explicit "li" semantax for ordered and unordered lists

h1 Sonoma County Appellations
h2 Eastern Hills
ol {
Pine Mountain – Cloverdale Peak
Alexander Valley
Knights Valley
Fountaingrove District
Bennett Valley
}

h2 San Pablo Bay
ul {
Sonoma Mountain
Moon Mountain
Northern Sonoma
Carneros
Sonoma Valley
}
Implied "li" semantax for ordered and unordered lists

Ancestors

ol
The ol element groups a series of items into a numbered list.
ul
The ul element groups a collection of items, having no inherent sequencing, into a bulleted list.
menu
The menu element groups a set of related user interface commands together.

semantax > list > liList item

🔎