HTML Lists Tutorial
Introduction
HTML lists are used to display information in an organized manner. There are three types of lists in HTML: unordered lists, ordered lists, and definition lists.
Unordered Lists
Unordered lists are used to create a list of items that do not have a specific order. Each item in an unordered list is preceded by a bullet point.
Example:
- Apple
- Orange
- Banana
Apple |
Orange |
Banana |
Ordered Lists
Ordered lists are used to create a list of items that have a specific order. Each item in an ordered list is preceded by a number or letter.
Example:
- First item
- Second item
- Third item
1. First item |
2. Second item |
3. Third item |
Definition Lists
Definition lists are used to define terms and their corresponding definitions.
Example:
- HTML
- HyperText Markup Language
- CSS
- Cascading Style Sheets
HTML | HyperText Markup Language |
CSS | Cascading Style Sheets |
Conclusion
Lists are a useful way to organize information in HTML. By using unordered lists, ordered lists, and definition lists, you can present information in a clear and structured manner.