Error when trying to add <div class=col-md-4"> \ Sections four of bootstrap


#1

Instructions are:

In index.html inside <div class="learn-more">..</div>

Inside <div class="container">..</div>, add the class "row" to the first div element, just like in the example above.Then add the class "col-md-4" to the three div elements nested inside. In the preview window, click the "Full Screen" button to see the results.

//SYNTAX BELOW // why doesn't it pass and let me move on ? Working on two hours sleep...

<!DOCTYPE html>
<html>

  <head>
    <link href="http://s3.amazonaws.com/codecademy-content/courses/ltp/css/shift.css" rel="stylesheet">
    
    <link rel="stylesheet" href="http://s3.amazonaws.com/codecademy-content/courses/ltp/css/bootstrap.css">
    <link rel="stylesheet" href="main.css">
    
  </head>

  <body>
    <div class="nav">
      <div class="container">
        <ul class="pull-left">
          <li><a href="#">Name</a></li>
          <li><a href="#">Browse</a></li>
        </ul>
        <ul class=pull-right>
          <li><a href="#">Sign Up</a></li>
          <li><a href="#">Log In</a></li>
          <li><a href="#">Help</a></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>
        <a href="#">Learn More</a>
      </div>
    </div> 

    <div class="learn-more">
      <div class="container">
      <div class="row">
        <div>
          <div>
          <div class="col-md-4">
            <h3>Travel</h3>
            <p>From apartments and rooms to treehouses and boats: stay in unique spaces in 192 countries.</p>
            <p><a href="#">See how to travel on Airbnb</a></p>
          </div>
          </div>
          <div>
          <div class="col-md-4">
            <h3>Host</h3>
            <p>Renting out your unused space could pay your bills or fund your next vacation.</p>
            <p><a href="#">Learn more about hosting</a></p>
          </div>
          </div>
          <div>
          <div class="col-md-4">
            <h3>Trust and Safety</h3>
            <p>From Verified ID to our worldwide customer support team, we've got your back.</p>
            <p><a href="#">Learn about trust at Airbnb</a></p>
          </div>
          </div>
          </div>
        </div>
      </div>
    </div>
  </body>
</html>

#2

The exercise was expecting you to use the existing <div> tags. It wanted you to add class names to each of them.

So instead of

    <div class="learn-more">
      <div class="container">
      <div class="row">
        <div>
          <div>
          <div class="col-md-4">
            <h3>Travel</h3>

You would end up with:

    <div class="learn-more">
      <div class="container">
        <div class="row">
          <div class="col-md-4">
            <h3>Travel</h3>

Does that make sense to you now?


#3

Thank you :smile:

Always something simple ...