Possible Duplicate:
Proper way to make HTML nested list?
I'd like to produce the following in HTML:
1. One
2. Two
1. Inner One
2. Inner Two
3. Three
One way is
<ol>
<li>One</li>
<li>Two</li>
<ol>
<li>Inner One</li>
<li>inner Two</li>
</ol>
<li>Three</li>
</ol>
But according to Proper way to make HTML nested list? this is not the proper way to do this. The "proper" way produces this:
1. One
2. Two
3.
1. Inner One
2. Inner Two
4. Three
So, is there a proper way to nest ordered lists without extra numbers appearing for the nested lists?
<ol>
<li>One</li>
<li>Two
<ol>
<li>Inner One</li>
<li>inner Two</li>
</ol>
</li>
<li>Three</li>
</ol>
gives
<ul>
is for *u*nordered lists.
I think, you are searching for this:
<ol>
<li>One</li>
<li>Two
<ol>
<li>Inner One</li>
<li>inner Two</li>
</ol>
</li>
<li>Three</li>
</ol>
Outputs to:
1. One
2. Two
1. Inner One
2. Inner Two
3. Three
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With