0
0
HTMLmarkup~20 mins

Ordered lists in HTML - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Ordered List Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
rendering
intermediate
2: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>
AA bulleted list with Apple, Banana, Cherry
BA numbered list with Apple as 1, Banana as 2, Cherry as 3
CA plain text list with Apple Banana Cherry separated by commas
DAn error message because &lt;ol&gt; is not valid
Attempts:
2 left
💡 Hint
Think about what <ol> means in HTML.
📝 Syntax
intermediate
1:30remaining
Which option correctly starts an ordered list in HTML?
Choose the correct HTML tag to start an ordered list.
A<li>
B<list>
C<ol>
D<ul>
Attempts:
2 left
💡 Hint
Ordered lists use a tag starting with 'o'.
selector
advanced
2: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?
Aol > li
Bol + li
Cli
Dul li
Attempts:
2 left
💡 Hint
Think about selecting direct children of <ol>.
layout
advanced
2: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>
Anumber="5"
Bcount="5"
Cvalue="5"
Dstart="5"
Attempts:
2 left
💡 Hint
The attribute name is a common English word meaning 'begin'.
accessibility
expert
3: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>
Aaria-label="Steps to complete the task"
Baria-hidden="true"
Caria-disabled="true"
Daria-live="polite"
Attempts:
2 left
💡 Hint
This attribute gives a name or description to the list for screen readers.