Reputation: 313
I attempted to code an ordered list using HTML:
<p>Lorem ipsum dolor:</p>
<ul>
<ol>sit amet</ol>
<ol>sit amet</ol>
<ol>sit amet</ol>
</ul>
I tried replacing ul with li:
<li>
<ol>sit amet</ol>
<ol>sit amet</ol>
<ol>sit amet</ol>
</li>
I still got the same result.
My code does not display either a numbered list or a bullet list, why?
Upvotes: 1
Views: 436
Reputation: 25
Bro to make a bullet list you have to li with every sentence not just at top it will just make a bullet at the top to make a bullet with every sentence write like instead of ol like
<li>
<li>sit amet</li>
<li>sit amet</li>
<li>sit amet</li>
</li>
And to make a number list Do
<ol>
<li>sit amet</li>
<li>sit amet</li>
<li>sit amet</li>
</ol>
Upvotes: 1
Reputation: 6083
<ol>
is the top level, stating it's an ordered (numbered) list. <li>
stands for list item, which is a member of the list.
<ol>
<li>sit amet</li>
<li>sit amet</li>
<li>sit amet</li>
</ol>
Upvotes: 1