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

Make a Website: HTML Forum

View Course » View Exercise

5 points
Picture
Submitted by
Kyle Johnson
over 3 years ago

6/10 It tells me to place my h1 and p elements inside the container

When I submit this code it tells me to place my h1 and p elements inside the container element, I've done that,but it won't let me proceed, I'm not sure what i'm missing as it appears to be exactly as the example shows.

Any help would be appreciated.

<!DOCTYPE html>
<html>
  <body>
<div class="nav">
  <div class="container">
    <ul>
      <li>Kyle J. Johnson</li>
      <li>Browse</li>
    </ul>

    <ul>
      <li>Sign up</li>
      <li>Log In</li>
      <li>Help</li>
    </ul>
    </div>
   </div>
 <div class="jumbotron">
  <div class=:"container">
    <h1>Find a place to stay.</h1>
    <p> Rent from people in over 34,000 cities and 192 countries.</p>
    </div>
   </div> 
  </body>
</html>

Well shoot, it just reads my code, I'm not sure how to display just the code, I guess i'll need help getting that question answered before I can get my original question answered.


4 votes

Best answer

permalink

There's a ":" in your container class, <div class=:"container"> should be <div class="container">

1521 points
56059c50d3292f8e7a00064f_684478859
Submitted by
Sarah
over 3 years ago


0 votes

permalink

Either use the code button while you got the code selected, it looks like: {}
Or put 4 spaces before each line of code.

1521 points
56059c50d3292f8e7a00064f_684478859
Submitted by
Sarah
over 3 years ago

1 Comment

55df2afa95e3787b9200005e_359368177 Judy over 3 years ago

Another way to allow your code to be read it to put 3 back ticks ``` on the line before your code and on the line after. I've added those for you Kyle.