Nesting Lists

Certify and Increase Opportunity.
Be
Govt. Certified HTML5 Developer

Lists can be nested within other lists like unordered list in a ordered list with separate points corresponding to one of the list items as shown

HTML code

<p>Main cities of BRIC countries</p>

<ol type =”1″>

<li>

India

<ul type =”square”>

<li>Delhi</li>

<li>Mumbai</li>

</ul>

</li>

<li>

China

<ul type =”circle”>

<li>Beijing</li>

<li>Shenzen</li>

</ul>

</li>

</ol>

Browser output

Nesting Lists

Get industry recognized certification – Contact us

Menu