LIST

Next we will learn about lists. This chapter will teach how to make bulleted list, numbered list and simlar things. First thing is ordered list. ol /ol . This will make any items added will be in a numbered ordered. To add items you need to tell the computer at add list items li /li .

tutorial

Next is unordered list. Instead of ol for ordered we use ul ul /ul to make bullet points.

tutorial

We can also make nested list. As the word nested implies it's a list inside another list.

tutorial

tutorial

In the example we use two unordered list, but it does work with two ordered list, and a unordered list inside a ordered list, and visa versa. Time for your mini test.

tutorial

Summary

  • There are three types of HTML lists: ordered, unordered, and definition.
  • Ordered lists use numbers.
  • Unordered lists use bullets.
  • Definition lists are used to define terminology.
  • Lists can be nested inside one another.

NEXT LESSON