W3.CSSLesson 31Free preview
W3.CSS Lists
This lesson is part of W3.CSS · All levels
Summary
A list is used to gather points, steps, or sets of items that do not form a paragraph. HTML provides ul for a non-ordered list and ol for a sequential list, both containing elements of li. With CSS, you set the type of markers, the spacing between items, and the ordering so that the lists are neat and easy to scan.
Key points
- Ul for the non-ordered list and ol for the numbered list
- Each item on the list uses the element li
- List-style: none remove the point or number marker
- Consistent padding and margin li make the distance uniform
- A list is easier to read than a long sentence with many dots
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.