I want to create an ordered list that looks like this:
1. Item_1
2. Item_2:
a. Subitem_1
b. Subitem_2:
I. Sub-Subitem_1
II. Sub-Subitem_2
c. Subtiem_3
3. Item 3
i.e. sub-lists should use alphabets/Roman Numbers or other such notations for numbering.
I tried nesting <ol>
tags but that plainly numbered the sub-lists.
Is there a way of doing this using only HTML?
The type attribute of the <ol> element is no longer deprecated in HTML5.
. It seems like it was declared deprecated in HTML 4. Is it possible it could be deprecated again? – Lipski<ol>``type
attribute it says: This attribute was deprecated in HTML4, but reintroduced in HTML5. Unless the value of the list number matters (e.g. in legal or technical documents where items are to be referenced by their number/letter), the CSS list-style-type property should be used instead. But it gives no reason as to why. If the attribute is no longer deprecated, I can't see any reason why it should not be use. – Lipski