0
0
HTMLmarkup

Nested lists in HTML - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a nested list in HTML?
A nested list is a list placed inside another list item. It helps organize information in a hierarchy, like chapters and subchapters in a book.
Click to reveal answer
beginner
Which HTML tags are used to create nested lists?
You use <ul> or <ol> tags inside a <li> tag to create nested lists. <ul> is for unordered (bulleted) lists, and <ol> is for ordered (numbered) lists.
Click to reveal answer
beginner
How does nesting lists help in real life?
Nesting lists helps show details clearly. For example, a grocery list can have categories like Fruits, and inside Fruits, you list Apples, Bananas, etc.
Click to reveal answer
intermediate
What is the correct way to nest an ordered list inside an unordered list?
Place the <ol> inside a <li> of the <ul>. For example:<br>
<ul>
  <li>Item 1
    <ol>
      <li>Subitem 1</li>
    </ol>
  </li>
</ul>
Click to reveal answer
intermediate
Can you nest multiple levels of lists in HTML?
Yes, you can nest lists as many levels as you want. Each nested list goes inside a <li> of the parent list, creating a clear structure.
Click to reveal answer
Which tag is used to start an unordered list in HTML?
A<li>
B<ol>
C<ul>
D<list>
Where do you place a nested list inside the parent list?
AInside a <li> element
BDirectly inside <ul> or <ol> without <li>
COutside the list tags
DInside a <div> only
What happens if you put a nested list outside a <li>?
AThe browser ignores it
BIt causes a browser crash
CIt creates a new separate list
DIt still works but is not valid HTML
Which of these is a valid nested list structure?
A<ul><ul><li>Item</li></ul></ul>
B<ul><li>Item<ul><li>Subitem</li></ul></li></ul>
C<li><ul>Item</ul></li>
D<ol><li>Item</li><li>Subitem</li></ol>
Can you mix ordered and unordered lists in nesting?
AYes, you can nest <ol> inside <ul> and vice versa
BNo, you must use only one type
COnly <ul> can be nested
DOnly <ol> can be nested
Explain how to create a nested list in HTML and why it might be useful.
Think about how you organize items in groups and subgroups.
You got /3 concepts.
    Describe the rules for placing nested lists inside parent lists in HTML.
    Focus on where the nested list tags go in the HTML structure.
    You got /3 concepts.