Make sure you:
ℹ️ HTML lists help you organize information on your webpage. Just like making a shopping list or writing down your favorite games, HTML lists make your content easy to read and understand!
In HTML, you can create two main types of lists:
💡 Tip Think of ordered lists like steps in a recipe (where order matters) and unordered lists like a shopping list (where order doesn't matter).
| Block | Definition |
|---|---|
![]() |
Unordered list block - Creates a list with bullet points |
![]() |
Ordered list block - Creates a list with numbers |
Ordered lists are perfect when the order of items matters, like:
To create an ordered list:
<ol> block (ordered list)<li> blocks (list items) inside it<li> block📝 Note The
<li>tag stands for "list item". Each item in your list needs its own<li>block!
| Block | Output |
|---|---|
![]() |
One. Apple2. Banana3. Orange |
The browser automatically adds the numbers for you!
Want to use letters instead of numbers? You can change your ordered list to use:
Just add a type attribute to your <ol> block!
| Block | Output |
|---|---|
![]() |
A. AppleB. BananaC. Orange |
Set type="A" in your ordered list block.
| Block | Output |
|---|---|
![]() |
a. Appleb. Bananac. Orange |
Set type="a" in your ordered list block.
Want to make your list look fancy? Use Roman numerals like the ancient Romans did!
| Block | Output |
|---|---|
![]() |
I. AppleII. BananaIII. Orange |
Set type="I" in your ordered list block.
💡 Tip Roman numerals are great for:
- Chapter numbers in a story
- Important rules or laws
- Making your list look extra special!
Unordered lists are perfect when the order doesn't matter, like:
To create an unordered list:
<ul> block (unordered list)<li> blocks inside it<li> blockThe browser automatically adds bullet points (•) for you!
| Block | Output |
|---|---|
![]() |
My favourite entertainment website• youtube• Spotify• Google |
You can change how your bullet points look using CSS! Here are your options:
| Style | What it looks like | Description |
|---|---|---|
| disc | • | A filled circle (default) |
| circle | ○ | An empty circle |
| square | ■ | A filled square |
| none | (nothing) | No bullet point at all |
📝 Note To change bullet styles, you'll need to add CSS to your
<ul>block. This is like choosing different markers to draw with!
Want to make your list items clickable? You can add links inside your list items!
Here's how:
<ul> or <ol>)<li>)<li>, add an anchor tag (<a>)href to the website address| Block | Output |
|---|---|
![]() |
My favourite entertainment website• youtube (linked)• Spotify (linked)• Google (linked) |
Each item becomes a clickable link that takes you to that website!
💡 Tip This is super useful for:
- Creating a navigation menu
- Making a list of resources
- Building a directory of favorite sites
Having problems with your lists? Check these common issues:
Lists not showing?
<li> blocks inside your <ul> or <ol> blocksWrong numbers or letters?
type attribute in the <ol> blockLinks not working?
href starts with http:// or https://Bullets look weird?
Before watching the video, remember:
<ol>) create numbered lists<ul>) create bullet point lists<li>) inside themtype attributeAfter watching the video, try these challenges:
📝 Note Remember: Lists help organize your content and make it easier for people to read your webpage. The more you practice, the better you'll get at choosing the right type of list!