Web - Lists
Code Life
By Pierre Marsaa
Introduction to HTML Lists
Lists are a fundamental way to organize information in HTML. There are three main types of lists:
- Unordered lists (bulleted)
- Ordered lists (numbered)
- Definition lists (term and description pairs)
Let's start with the unordered list UL (<ul>). This creates a bulleted list where each item starts with a bullet point. Each list item is defined with the <li> tag.
↗️
Loading editor...
↶
↷
Important List Rules
Always remember that list items (<li>) must be inside a list container (<ul>, <ol>, or <dl>). Never use list items on their own without a parent list element.
Verify