Im stuck, like other at 6/8


#1


I am stuck at 6/8 on the make a website: Building with Bootstrap.


Error message =
Make sure you add a p element and an img element inside each figure element.


<html>
<head>
  <title>Skillfair</title>
  <meta charset="utf-8"/>
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
  <link href='https://fonts.googleapis.com/css?family=Roboto:300,400,700' rel='stylesheet' type='text/css'>
  <link rel="stylesheet" type="text/css" href="main.css">


  </head>
<body>
<header
        class="container">
  <div class="row">
    <h1 class="col-sm-4">
      Skillfair</h1>
    	<nav class="col-sm-8 text-right">
        <p>Newest</p>
        <p>catalogue</p>
        <p>Contact</p>
    
    </nav>
     </div>
  </header>
  <section
           class="jumbotron">
    <div
         class="container">
      <div class="row text-center">
        <h2>
          Homemade goods
        </h2>
        <h3>
           This year's best
        </h3>
        <a class="btn btn-primary"href = "#"role="button">See all </a>
      </div>
    </div>
  </section>
  <section
           class="container">
    <div class="row">
      <figure class="col-sm-6">
      <p>
         Kitchen
        </p>
        <p>
        <img src= "https://s3.amazonaws.com/codecademy-content/projects/make-a-website/lesson-4/kitchen.jpg"/> 
        </p>
      </figure>
      <figure class="col-sm-6">
        <p>
          woodwork
        </p>
        <p>
          <img src="https://s3.amazonaws.com/codecademy-content/projects/make-a-website/lesson-4/woodwork.jpg"/>
        </p>   
      </figure>
      </div>
    <div class="row">
      <figure class="col-sm-6">
        <p>
          gift
        </p>
        <p>
          <img src="https://s3.amazonaws.com/codecademy-content/projects/make-a-website/lesson-4/gifts.jpg"/>
        </p>
      
      </figure>
      <figure class="col-sm-6">
      <p>
        antique
        </p>
        <p>
        <img src="https://s3.amazonaws.com/codecademy-content/projects/make-a-website/lesson-4/antique.jpg"/>
        </p>
      </figure>
      </div>
  </section>


</body>
</html>


#2

Don't nest your images in <p> elements.


#3

Thanks man, been trying to solve this issue for a while :stuck_out_tongue:


#4

You're welcome :slight_smile:


#5

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.