Create nested ordered lists in HTML and CSS
Description
The following code shows how to create nested ordered lists.
Example
<html>
<body>
<p>Here is a nested ordered list:</p>
<!--from w ww.ja v a 2 s . c o m-->
<ol type="I">
<li>Item one</li>
<li>Item two</li>
<li>Item three</li>
<li>Item four
<ol type="i">
<li>Item 4.1</li>
<li>Item 4.2</li>
<li>Item 4.3</li>
</ol>
</li>
<li>Item Five</li>
</ol>
</body>
</html>
The code above generates the following result.
HTML CSS Tutorial Ordered List
Compare OL list bullet style in HTML and CS...
Compare OL list style type, lower-latin/upp...
Compare list style type, decimal and decima...
Compare list style type: lower latin, upper...
Compare list style type, lower roman upper ...
Create an ordered list with capital letters...
Create ordered lists in HTML and CSS
Set OL list style type georgian in HTML and...
Set OL list style type to armenian in HTML ...
Set OL list style type to decimal-leading-z...
Set OL list style type to lower-greek in HT...
Set OL list style type to lower-latin in HT...
Set OL list style type to lower-roman in HT...
Set OL list style type to upper-greek in HT...
Set OL list style type to upper-latin in HT...
Set OL list style type to upper roman in HT...
Compare OL list bullet style in HTML and CS...
Compare OL list style type, lower-latin/upp...
Compare list style type, decimal and decima...
Compare list style type: lower latin, upper...
Compare list style type, lower roman upper ...
Create an ordered list with capital letters...
Create nested ordered lists in HTML and CSS
Create ordered list using small Roman numer...Create ordered lists in HTML and CSS
Set OL list style type georgian in HTML and...
Set OL list style type to armenian in HTML ...
Set OL list style type to decimal-leading-z...
Set OL list style type to lower-greek in HT...
Set OL list style type to lower-latin in HT...
Set OL list style type to lower-roman in HT...
Set OL list style type to upper-greek in HT...
Set OL list style type to upper-latin in HT...
Set OL list style type to upper roman in HT...