HTML Full Course [Day 5] [Hindi] π» | List (Ordered, Unordered List) π | Mohit Decodes
HTML Tutorial β Part 5: Lists in HTML
Welcome to Part 5 of the HTML Full Course by Mohit Decodes! In this tutorial, youβll learn how to organize content using HTML Lists β a powerful way to display grouped items cleanly and effectively.
πΉ What are HTML Lists?
HTML provides three main types of lists:
- Unordered Lists (
<ul>
) - Ordered Lists (
<ol>
) - Description Lists (
<dl>
)
These are commonly used for menus, feature listings, steps, FAQs, and more.
1οΈβ£ Unordered Lists (<ul>
)
Unordered lists are used when the order of items doesnβt matter. They appear with bullet points by default.
π Example:
β
Tip: You can style the bullets using CSS with list-style-type
(e.g., circle
, square
, none
).
2οΈβ£ Ordered Lists (<ol>
)
Ordered lists are used when the sequence matters. Items are automatically numbered.
π Example:
β
You can change numbering style using the type
attribute:
type="1"
(default) β numberstype="A"
β uppercase letterstype="a"
β lowercase letterstype="I"
β Roman numerals
3οΈβ£ Description Lists (<dl>
)
Description lists are used for terms and their corresponding definitions or descriptions.
π Example:
β Use this type for glossaries, FAQs, or key-value structured content.
π‘ Bonus Styling Tips:
- Use CSS to customize spacing and alignment
- Combine lists inside list items for nested lists
- Lists are responsive by default and work well on all screen sizes