TOP CATEGORIES

×

What is the difference between the ordered list and unordered list?

S

Sonalika

Difference Between Ordered List and Unordered List

  • In the termed of definition: ordered list <ol> is a list where items are numbered or ordered, and unordered list <ul> is an items are bulleted or unordered.
  • Ordered list sequence or priority matters, and in the Unordered list, the order doesn't matter.

Ordered List Example in HTML

    <ol>

      <li>Wake up</li>

      <li>Brush teeth</li>

      <li>Eat breakfast</li>

    </ol>

Unordered List Example in HTML

    <ul>

      <li>Apples</li>

      <li>Bananas</li>

      <li>Grapes</li>

    </ul>

0 votes

Your Answer