Make a Website: Building with bootstrap, Exercise 6, Unit 4


#1


https://www.codecademy.com/courses/make-a-website/lessons/bootstrap/exercises/supporting-content


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


<!DOCTYPE html>
<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">
    Google
    </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>
     gifts
      </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>
      antiques
      </p>
      <p>
        <img src="https://s3.amazonaws.com/codecademy-content/projects/make-a-website/lesson-4/antique.jpg"/>
      </p>
    </figure>
  </div>
</section>
</body>
</html>


Need help lesson 6 part 4
#2

Remove all tags <p> </p> between the img. And try again.


#3

Thank you so much. :+1:


#4

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