Challenge - 5 Problems
Ordered List Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ rendering
intermediate2:00remaining
What is the visual output of this ordered list?
Look at this HTML code for an ordered list. What will you see in the browser?
HTML
<ol> <li>Apple</li> <li>Banana</li> <li>Cherry</li> </ol>
Attempts:
2 left
💡 Hint
Think about what <ol> means in HTML.
✗ Incorrect
The <ol> tag creates a numbered list. Each <li> is a list item with a number before it.
📝 Syntax
intermediate1:30remaining
Which option correctly starts an ordered list in HTML?
Choose the correct HTML tag to start an ordered list.
Attempts:
2 left
💡 Hint
Ordered lists use a tag starting with 'o'.
✗ Incorrect
The <ol> tag is used to create ordered (numbered) lists. <ul> is for unordered (bulleted) lists.
❓ selector
advanced2:30remaining
Which CSS selector targets only list items inside ordered lists?
You want to style only the items inside ordered lists. Which CSS selector should you use?
Attempts:
2 left
💡 Hint
Think about selecting direct children of <ol>.
✗ Incorrect
The selector 'ol > li' selects only <li> elements that are direct children of <ol>. 'ul li' selects list items inside unordered lists.
❓ layout
advanced2:00remaining
How to start an ordered list numbering at 5?
You want your ordered list to start numbering from 5 instead of 1. Which HTML attribute do you use?
HTML
<ol ???> <li>Item A</li> <li>Item B</li> </ol>
Attempts:
2 left
💡 Hint
The attribute name is a common English word meaning 'begin'.
✗ Incorrect
The 'start' attribute on <ol> sets the starting number for the list items.
❓ accessibility
expert3:00remaining
Which attribute improves accessibility for ordered lists?
To help screen readers understand your ordered list better, which attribute should you add?
HTML
<ol aria-??? > <li>Step one</li> <li>Step two</li> </ol>
Attempts:
2 left
💡 Hint
This attribute gives a name or description to the list for screen readers.
✗ Incorrect
The 'aria-label' attribute provides a descriptive label for the list, helping screen readers announce its purpose clearly.