Build a Travel Agency Page - Build a Travel Agency Page

Tell us what’s happening:

I cannot seem to get these two tests right! I’d really appreciate some help :slight_smile:
25. Each figure element should contain an anchor element as its first child.
Failed:26. Each figure element should contain a figcaption element as its second child.

Your code so far

<!DOCTYPE html> 
<html lang="en">

  <head>

    <meta charset="UTF-8">
    <title>Travel Agency Page</title>
    <meta name="Description" content="This is a travel agency page with details on travelling Hungary "/>
  </head> 

  <body>

    <h1>Explore Hungary!</h1>
      <p>There are so many wonderful experiences to be had in Hungary!</p>

    <h2>Packages</h2>
      <p>We have many packages you can choose from on your trip to hungry, including both sids of the river Buda and Pest, and countryside packages.</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">
          <img src="https://cdn.freecodecamp.org/curriculum/labs/colosseo.jpg" alt="picture">
        </a>
        <figcaption>Buda</figcaption>
      </figure>

      <figure>
        <a href="https://www.freecodecamp.org/learn" target="_blank">
          <img src="https://cdn.freecodecamp.org/curriculum/labs/alps.jpg" alt="pic">
        </a>
        <figcaption>Pest</figcaption>
      </figure>

      <figure>
        <a href="https://www.freecodecamp.org/learn" target="_blank">
         <img src="https://cdn.freecodecamp.org/curriculum/labs/sea.jpg" alt="pictor">
        </a>
        <figcaption>Countryside</figcaption>
      <figure/>
      
  </body>
</html>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36

Challenge Information:

Build a Travel Agency Page - Build a Travel Agency Page

Welcome to the forum @chloe.towers2442

There is a problem with the last figure closing tag.

Happy coding

1 Like

Thanks so much! So simple!

1 Like