Lesson 4 of 15

Lists

Unordered and Ordered Lists

HTML has two main list types:

Unordered list (<ul>) — bullets:

<ul>
  <li>Apples</li>
  <li>Bananas</li>
  <li>Oranges</li>
</ul>

Ordered list (<ol>) — numbers:

<ol>
  <li>First step</li>
  <li>Second step</li>
  <li>Third step</li>
</ol>

Each item uses the <li> (list item) tag. Lists can be nested by placing a <ul> or <ol> inside an <li>.

Your Task

Create:

  • An unordered list with at least 3 items
  • An ordered list with at least 2 items
HTML preview loading...
Loading...
Click "Run" to execute your code.