Locked lesson.
About this lesson
Exercise files
Download this lesson’s related exercise files.
Nested Lists.docx59.4 KB Nested Lists - Solution.docx
59.5 KB
Quick reference
Nested Lists
It is possible to nest lists inside of lists.
When to use
Whenever you want to add sub-categories or expand your list items into their own lists, you can use nested lists.
Instructions
To create a nested list, simply add another list <ol> or <ul> before, after, or inside a list item <li> and </li> of your current list.
<ol>
<li>Item 1</li>
<ul>
<li>This is a nested list item 1</li>
<li>This is a nested list item 2</li>
</ul>
<li>Item 2</li>
<li>Item 3</li>
</ol>
Hints & tips
- You can nest lists inside of list items.
- You can nest as many lists inside of your list as you like.
- You can change the style of the nested list the same way you change the style of the main list.
- You can mix and match ordered and un-ordered lists (you can nest ordered lists inside un-ordered lists etc).
Lesson notes are only available for subscribers.