New course! Every coder should learn Generative AI!
Try a free lesson+ 6
MD SAIF
ol (ordered list) is parent and li (list item) is child.
Your question is wrong I think. You should ask what is the difference between ol and ul.
So ol is ordered list and ul is unordered list.
In case of ol, list will look like this
<ol>
<li>A</li>
<li>B</li>
<li>C</li>
</ol>
1. A
2. B
3. C
And in case of ul, list will look like
<ul>
<li>A</li>
<li>B</li>
<li>C</li>
</ul>
• A
• B
• C
- 1
Hurry up check our website to learn deeply:
https://www.studytonight.com/code/html/
<ol>create order list
<li> create list items