This forum is now read-only. Please use our new forums at discuss.codecademy.com.

Make a Website: HTML Forum

View Course » View Exercise

426 points
546956427c82ca612b006b23_629301053
Submitted by
TonySGarcia
almost 3 years ago

4/10 Place both ul elements in between opening <div> and closing </div> tags

<!DOCTYPE html>
<html>
  <body>

  <div class="nav"> 

      <ul>
      <li>Tony Garcia</li>
      <li>Browse</Li>
      </ul> 
      </div>

     <div class="container">
     <ul>
       <li>Sign Up
       <li>Log In
       <li>Help
       </ul>

    </div>

2 votes

Best answer

permalink

You should put the two unordered list inside the nested nav and container divs:

<!DOCTYPE html>
<html>
  <body>
    <div class="nav">  
        <div class="container">
            ... put your lists in here
        </div>
    </div>
  </body>
</html>

687 points
52e7e2ec52f863dca7001e48_550144652
Submitted by
b h
almost 3 years ago


0 votes

permalink

May I ask why you don't wrap each individually?

517 points
15803df705a6e792fee7081b79901aa9?s=140&d=retro
Submitted by
Megan
almost 3 years ago

1 Comment

55df2afa95e3787b9200005e_359368177 Judy almost 3 years ago

Hi Megan, the "nav" div is the bar across the top of the page used for navigating around the site. If you wrapped each list individually then you would have two nav bars. In some cases you might desire that, but that isn't how the designer of this project setup the page we are working on.