Build a Travel Agency Page - Trouble with figcaption and Images

Tell us what’s happening:

Each figure element should contain a figcaption element as its second child. I’m lost. If (a) is the first child and i have that listed first, then listing figcaption second would make it the second child? and the (a) elements that are children of my figure element should contain an image? i do have the images. Im confused now. please help

Your code so far

<!DOCTYPE html>
<html lang="en">
<head>
  <title>Travel Agency</title>
  <meta charset="utf-8" />
  <meta name="description" content="width=device-width, initial-scale=1.0" />
</head>
  <body>
    <h1> Travel far and wide! Egypt to Alaska!
      </h1>
      <p> Sit in 1st class with work class prices! Feast in style, fly in class.
        </p>
        <h2> Packages</h2>
        <p> 1st class to anywhere $350, any other seat is $50 (location depending)</p>
        <ul>
          <li><a href="https://www.freecodecamp.org/learn" target="_blank">Group Travels</a></li>
            <li><a href="https://www.freecodecamp.org/learn" target="_blank">Private Tours</a></li>
              </ul>
              <h2> Top Itineraries
                </h2>
                <figure>
                  <a href="https://www.freecodecamp.org/learn" target="_blank"></a>
                  <figcaption><img src="https://cdn.freecodecamp.org/curriculum/labs/colosseo.jpg" alt="Cathedral In Rome">Visit Roman History
                  </figure>
                  <figure>
                  <a href="https://www.freecodecamp.org/learn" target="_blank"></a>
                  <figcatption><img src="https://cdn.freecodecamp.org/curriculum/labs/alps.jpg" alt="The swiss alps?">See the swiss Alps</figcaption>
                  </figure>
                  <figure>
                  <a href="https://www.freecodecamp.org/learn" target="_blank"></a>
                  <figcaption><img src="https://cdn.freecodecamp.org/curriculum/labs/sea.jpg" alt="see the seas for the seaguls POV">Sail the seven Seas arrrr</figcaption>
                  </figure>
    </body>
</html>

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36

Challenge Information:

Build a Travel Agency Page - Build a Travel Agency Page

Hi @thethirstywallrus

  1. Each of the a elements that are children of your figure elements should contain an image.
  1. The anchor elements do not contain any elements.
  2. The other error is a typo:

Happy coding

1 Like

thanks, that helped enough. another thing learned!

1 Like