+ 1
Lists in Html
can I do nested lists ,or change numbers in order list to chars or something else ?
1 Respuesta
+ 5
Both...
You can do nested list as:
<ol>
<li>item 1.0</li>
<li>
nested list ( item 1.1 )
<ol>
<li>item 2.0</li>
<li>item 2.1</li>
<li>item 2.2</li>
</li>
<li>item 1.2</li>
<li>item 1.3</li>
</ol>
... and you cal also define the starting number of the list by using attribute 'start' of <ol> tag ( need declare a html5 '<!doctype html>' in order to be valid ):
<ol start="5">
<!-- list content -->
</ol>
... which will produce a list starting at number five.
Warning:
Whatever the style of numbering ( decimal, roman, and so on... ), you must define this attribute with a decimal value to make it working!