Unordered lists (ul and li), online
Six activities your students do on their own devices. See who's finished, and their scores.
Unordered lists (ul and li) in one minute
What students need to know
Every item between <ul> and </ul> must be a <li>. Here three items each have their own <li>...</li> wrapper. Both children are <li> elements - correct. Placing <p> or raw text directly inside <ul> is invalid.
<ul> creates an unordered (bulleted) list. <ol> creates an ordered (numbered) list. HTML tag names must be lowercase. <UL> and <LI> are non-standard - use <ul> and <li>.
Mistakes students make
- HTML tag names must be lowercase. <UL> should be written as <ul>.
- The first list item is missing its closing tag. It should be <li>Apples</li> with </li> at the end.
- HTML tag names must be lowercase. <LI> and </LI> should be written as <li> and </li>.
- The </ul> closing tag appears before the third list item. Move </ul> to after the last <li>.
What students will learn in this module
Every question in Module 18
Quick questions
- Which element creates an unordered list in HTML?A<ul>B<ol>
- What element wraps each item inside a <ul>?A<item>B<li>
- True or false: content can be placed directly inside <ul> without <li> wrappers.AFalseBTrue
- True or false: <UL> and <LI> with capital letters are valid HTML.ATrueBFalse
- What do unordered lists display by default?ABullet pointsBNumbers
Key terms
Students type the meaning of:
<ul>
Match the pairs
<ul> <li>Apples</li> <li>Bananas</li> </ul>Match it to what it does
<nav>
<ul>
<li><a href="h.html">Home</a></li>
</ul>
</nav>Match it to what it does<ul> is the list container; <li> wraps every individual list item inside itMatch it to what it doesDirect children of <ul> must be <li> elements - not <p>, <div>, or plain textMatch it to what it does<ul> <li>Apples<li> <li>Bananas</li> </ul>Match it to what it does
<ul> <p>Apples</p> <li>Bananas</li> </ul>Match it to what it does
Fill in the blanks
<___> <li>Apples</li> <li>Bananas</li> </ul>
Hint: Type the element name that creates an unordered list
<ul> <___>Coffee</li> <li>Tea</li> </ul>
Hint: Type the element name used for each item in a list
<ul> <li>Red</___> <li>Blue</li> </ul>
Hint: Type the element name for the closing tag of a list item
<ul> <li>One</li> <li>Two</li> </___>
Hint: Type the element name for the closing tag that ends the unordered list
<nav> <___> <li>Home</li> </ul> </nav>Hint: Type the element name that wraps the list of navigation links
Spot the error
Question 1
A<UL>B <li>Apples</li>C <li>Bananas</li>D</ul>
Question 2
A<ul>B <li>Apples<li>C <li>Bananas</li>D</ul>
Question 3
A<ul>B <li>Apples</li>C <LI>Bananas</LI>D <li>Cherries</li>E</ul>
Question 4
A<ul>B <li>One</li>C <li>Two</li>D </ul>E <li>Three</li>
Question 5
A<nav>B <ul>C <li><a href="home.html">Home</a></li>D <li><a href="about.html">About</a></li>E <li><a href=contact.html>Contact</a></li>F </ul>
