Nested and Styled Lists
Put a new ul or ol inside an li to nest it. Use the CSS property list-style-type to change markers, such as square, decimal, lower-alpha or none.
Lists with list-style-type: none are the basis of most navigation menus.
Example
<ul>
<li>Frontend
<ul>
<li>HTML</li>
<li>CSS</li>
</ul>
</li>
<li>Backend</li>
</ul>
<ol style="list-style-type: upper-roman">
<li>One</li>
<li>Two</li>
</ol>Exercise
Remove the list markers.
ul { list-style-type: ; }
Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.