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>
- A.
1. Coffee
2. Tea
3. Milk - B.
1. Milk
2. Tea
3. Coffee - C.
1. Coffee
2. Milk
3. Tea - 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