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 Images, Text and Links Images and File Paths Challenge

my <ul>code is not working can someone help..

<ul> <li><a href="#"></a>Home</li> <li><a href="#"></a>About</li> <li><a href="#"></a>Articles</li> <li><a href="#"></a>Contact</li> </ul>

index.html
<!DOCTYPE html> 
<html>
  <head>
    <title>The Moon</title>
  </head>
  <body>

  </body>
</html>

<ul> <li><a href="#"></a>Home</li> <li><a href="#"></a>About</li> <li><a href="#"></a>Articles</li> <li><a href="#"></a>Contact</li> </ul>

2 Answers

Eric M
Eric M
11,546 Points

Hi Andre,

Your list block looks fine, but for your links you probably want the text to be enclosed by the a tag. e.g.

<li>
  <a href="#">Some text</a>
</li>

If the closing a tag </a> comes right after the opening a tag then there's not going to be much of a link to click!

got it thanks alot