Ordered list

Ordered lists or numbered lists contain list items each prefaced by a number. We use a numbered list when the order or priority of items is important.

We use two kinds of elements for a numbered list:

  1. The ordered list element (<ol>) specifies a numbered list.
  2. List item elements (<li>) mark each item in the list.

The following markup defines a three-item numbered list:

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *