We have 2 main kinds of lists: unordered lists (the ones you saw in the first example) and ordered lists
Unordered lists are created using the ul
tag. Each item in the list is created with the li
tag:
<ul>
<li>First</li>
<li>Second</li>
</ul>
Ordered lists are similar, just made with the ol
tag:
<ol>
<li>First</li>
<li>Second</li>
</ol>
The difference between the two is that ordered lists have a number before each item.
Lessons in this unit:
0: | Introduction |
1: | Your first HTML page |
2: | Text tags |
3: | Attributes |
4: | Links |
5: | Images |
6: | ▶︎ Lists |
7: | Head tags |
8: | Container tags |
9: | DEMO Using CodePen |
10: | DEMO Using VS Code |