List item element
An HTML <li> element represents a single item in an ordered or unordered list.
Build a Website with ChatGPT
A list item is the HTML li element that represents one item within an ordered or unordered list.
- How it is used
- Structures individual entries inside unordered and ordered HTML lists.
- How deep it goes
- Defines the enclosing tags and demonstrates short and long entries, but stops short of deeper HTML parsing or browser internals.
- Examples
- Uses mango names, book recommendations, and novelty-product rankings as list-item examples.
- What you can do after
- Build unordered or ordered HTML lists and safely revise the text inside their list item tags.
Read how Build a Website with ChatGPT explains list item element →
Web Design Playground
An HTML element that represents a list item within an ordered or unordered list.
- How it is used
- Structures each entry within an ordered or unordered HTML list.
- How deep it goes
- Explains tag placement, automatic markers, list containers, and CSS marker changes through short construction examples.
- Examples
- Uses recipe steps, rankings, top-ten lists, groceries, tasks, traits, and prerequisites as list examples.
- What you can do after
- Build it from scratch by placing item text inside li tags within ol or ul containers.
Web Design Playground, Second Edition
A list item is one entry in an ordered or unordered list.
- How it is used
- Structures individual entries inside ordered and unordered HTML lists.
- How deep it goes
- Defines the tag, container relationship, browser markers, and closing-tag practice without covering advanced list behavior.
- Examples
- Uses procedures, top-ten rankings, to-do lists, grocery lists, traits, prerequisites, and word-formation examples.
- What you can do after
- Build it from scratch by placing item text inside <li> elements within <ol> or <ul> containers.
Read how Web Design Playground, Second Edition explains list item element →
Related concepts
- ul elementused by · The HTML ul element represents a collection of related list items without inherent sequential ordering, typically displayed with bullet markers.
- ol elementpart of · The HTML ol element represents an ordered list whose items are presented in a meaningful sequential order, typically with numbered markers.
- float propertyused by · The CSS float property positions an element toward one side of its containing block and allows surrounding content to flow around it.
- paddingused by · Padding is the addition or reservation of extra space, positions, or filler values around or within data or content to meet layout, alignment, size, or processing requirements.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.


