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 Basics Structuring Your Content Marking Up a Blog Post

why do i have 5 list items when my code has 4?

my ol list has 5 items... there should be only four and #3 is blank, what am I missing? I will give more code if you need it.

<aside> <h3>Top VR Resources</h3> <ol> <li><a href="#">Learn to create educational experiences in VR</a></li> <li><a href="#">Virtual Reality in Entertainment</a><li> <li><a href="#">Interact with buildings and products in VR</a></li> <li><a href="#">Use VR for teleconferencing and social media</a></li> </ol> </aside>

1 Answer

Cameron Childres
Cameron Childres
11,817 Points

Hi Amy,

Check the closing tag on your second list item. It's typed as <li> instead of </li>, so this is being interpreted as an additional list item instead of closing out the previous one. Add in that pesky slash to properly close it and you should see the list display as expected.

Quick tip, when you post code here you can use formatting in the markdown cheatsheet linked below the comment box for easier readability. Use 3 backticks on the first line followed by the language, put your code on the line after, and finish it off with 3 more backticks on the last line:

```HTML
<li>
<a href="#">Virtual Reality in Entertainment</a>
<li>
```

This will look like:

<li>  
  <a href="#">Virtual Reality in Entertainment</a>  
<li>   

Hope this helps!