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 McKibbin
Eric McKibbin
11,482 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