HTML HTML Basics Structuring Your Content Structuring Content Challenge

Tina Budzáková
Tina Budzáková
1,366 Points

navigation tag

Can somebody please tell me what am I doing wrong? the navigation tag goes outside of <ul> tags but it's wrong.

index.html
<!DOCTYPE html>
<html>
  <head>
    <link href="styles.css" rel="stylesheet">
    <header>
    <title>My Portfolio</title>
    </header>
  </head>
  <body>
    <section>
      <nav>
        <ul>
          <li><a href="#">About</a></li>
          <li><a href="#">Work</a></li>
          <li><a href="#">Contact</a></li>            
        </ul>
    </nav>
    <h1>My Web Design &amp; Development Portfolio!</h1> 
    <p>A site featuring my latest work.</p>


    <h2>Welcome</h2> 
    <p>Fusce semper id ipsum sed scelerisque. Etiam nec elementum massa. Pellentesque tristique ex ac ipsum hendrerit, eget feugiat ante faucibus.</p>
     <nav>
        <ul>
        <li><a href="#">Recent project #1</a></li>
        <li><a href="#">Recent project #2</a></li>
        <li><a href="#">Recent project #3</a></li>     
        </ul>
     </nav>
    </section>

    <footer>
    <p>&copy; 2017 My Portfolio</p>
    <p>Follow me on <a href="#">Twitter</a>, <a href="#">Instagram</a> and <a href="#">Dribbble</a></p>
   </footer>
      </body>
</html>

2 Answers

Steven Parker
Steven Parker
201,976 Points

Looks like there's a few issues here:

  • the <header> area from task 1 should have been placed in the body area, not the head
  • the <section> from task 3 is not placed according to the instructions
  • there should only be one <nav> section
Franco ADP
Franco ADP
3,139 Points

<header> should have been placed in the body area