Simple HTML question.?

Toki Wartooth

New member
Just learning some html.
Currently doing lists.
I'm being told to do a list like this.
<ol> <li>apple</li> <li>orange </li> </ol>
That of course brings up a list like this.

1. apple
2. orange

My question is, why do i need to close the <li>?
Example.
<ol> <li>apple <li>orange </ol>

Shows the same result.
Since i'm closing the <ol>, wouldn't that prevent any conflict from not ending the <li>?
Ah compatibility. That makes sense.
Thanks to all.
 
Back
Top