Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML HTML Forms HTML Mastery

Didier Borel
Didier Borel
2,837 Points

is there a tag type called ordered list? is there somewhere where I can find all tag type et their syntax

I tried to answer the question by creating a check box list but that didn't work

index.html
<!DOCTYPE html>
<html>
  <head>
    <title>HTML Mastery Challenge</title>
  </head>
  <body>
    <h1>HTML Mastery Challenge</h1>

    - Write your code below -->
    <div>
      <h1>Shopping List</h1>
      <h2>Shopping List</h2>
      <input type 

    </div>


  </body>
</html>

2 Answers

Matthew Frost
Matthew Frost
9,855 Points

The 'Ordered List' html tag is

<ol>

and the closing tag is

</ol>

To create a list, you then need to add list items using

<li>

and

</li>

within the ordered list tags. So an example would be:

<ol>
   <li>My First Item</li>
   <li>My Second Item</li>
</ol>

Hope this helps!

Hi there,

As above, the ordered list is opened with ol and closed with /ol

There is a good resource here for web syntax. Here too.

The code for the challenge should look like:

    <!-- Write your code below -->
    <div>
      <h2>Shopping List</h2>
      <p><strong>Text inside it</strong></p>
      <ol>
        <li></li>
        <li></li>
        <li></li>
      </ol>
      <form>
        <input type="text" value="Hello World">
        <input type="submit" value="Submit">      
      </form>
    </div>

I hope that helps.

Steve.