- 720p
- 540p
- 360p
- 0.50x
- 0.75x
- 1.00x
- 1.25x
- 1.50x
- 1.75x
- 2.00x
We hope you enjoyed this lesson.
Cool lesson, huh? Share it with your friends
About this lesson
Exercise files
Download this lesson’s related exercise files.
Creating Lists59.3 KB Creating Lists - Solution
59.5 KB
Quick reference
Creating Lists
Creating ordered and un-ordered lists in HTML is easy.
When to use
Whenever you want to create a list, either ordered (with numbers) or un-ordered (with bullets), use an HTML list.
Instructions
To create an ordered list (with numbers), use an <ol> tag:
<ol>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ol>
To create an un-ordered list (with bullets) use the <ul> tag:
<ul>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
To change the type of bullet point, add the style tag to the <ul> tag:
<ul style="list-style-type:disc">
Your options are disc, circle, square or none.
To change the type of numbered point in an ordered list, add the type attribute to the <ol> tag:
<ol type="i">
Your options are I, i, A, a
Hints & tips
- Ordered lists are created with the <ol> and </ol> tag.
- Un-Ordered lists are created with the <ul> and </ul> tag.
- List items are wrapped in the <li> and </li> tag.
- To change the style of a <ul> use the style attribute: <ul style="list-style-type:square">
- To change the style of a <ol> use the type attribute: <ol type="i">
Lesson notes are only available for subscribers.