Menu
Coddy logo textTech

Recap - Lists

Part of the Fundamentals section of Coddy's HTML journey — lesson 15 of 60.

challenge icon

Challenge

Easy

Create an HTML document that includes all the list types we've learned so far:

  1. An unordered list (<ul>) with the items "Electronics" and "Books".
  2. Inside the "Electronics" item, create a nested ordered list (<ol>) with the items "Phone", "Tablet", and "Laptop".
  3. Inside the "Books" item, create a nested unordered list (<ul>) with the items "Fiction", "Non-Fiction", and "Reference".

It should look like this:

  • Electronics
    1. Phone
    2. Tablet
    3. Laptop
  • Books
    • Fiction
    • Non-Fiction
    • Reference

Try it yourself

<!DOCTYPE html>
<html>
    <body>
        <!-- Write code here -->
    </body>
</html>

All lessons in Fundamentals