What will be the output of the following segment of the HTML codes? <ol>…

2018

What will be the output of the following segment of the HTML codes?
<ol>
<li>coffee</li>
<li>tea</li>
<li>milk</li>
</ol>

  1. A.

    1. Coffee
    2. Tea
    3. Milk

  2. B.

    1. Milk
    2. Tea
    3. Coffee

  3. C.

    1. Coffee
    2. Milk
    3. Tea

  4. D.

    Coffee
    Tea
    Milk

Attempted by 132 students.

Show answer & explanation

Correct answer: A

Key idea: The <ol> tag creates an ordered list, so the browser adds numbering automatically.

The given items are written in this order:
1. Coffee
2. Tea
3. Milk

Final answer: Option A

Explore the full course: Up Lt Grade Assistant Teacher 2025