I have a HTML that produces an ordered list for me.
<ol>
<li>Element 1</li>
<li>Element 2</li>
<li>Element 3</li>
<li>Element 4, holds some nested elements
<ol>
<li>Nested Element 1</li>
<li>Nested Element 2</li>
</ol>
</li>
</ol>
The code above outputs it this way:
1. Element 1
2. Element 2
3. Element 3
4. Element 4, holds some nested elements
1. Nested Element 1
2. Nested Element 2
I'm trying to make it look it this way:
1. Element 1
2. Element 2
3. Element 3
4. Element 4, holds some nested elements
4.1. Nested Element 1
4.2. Nested Element 2
I've actually managed to solve it using the solution here: Can ordered list produce result that looks like 1.1, 1.2, 1.3 (instead of just 1, 2, 3, ...) with css?
and as I'm pretty new to HTML, I'm wondering if there's a way to solve it without using the CSS styles?
Thanks