Build a Travel Agency Page - Build a Travel Agency Page

Tell us what’s happening:

Hi everyone! I can’t understand why 26 is wrong, and I can’t find my mistake

Your code so far

<!DOCTYPE html>
<html lang="en">
  <head> 
    <meta charset="utf-8">
    <meta
    name="description"
    content="travel agency page, travel cheap"/>
    <title>Travel Agency Page</title>

    </head>
    <body>
      <h1>Discover Italy</h1>
      <p>
        Art, folklore, food, nature, and more. Choose among our wide selection of guided tours and excursions, and live an unforgettable experience exploring Italy.
      </p>
      <h2>
        Packages
      </h2>
      <p>
        We offer an extensive range of holiday solutions to accommodate the needs of all our clients. From daily excursions in the most beautiful cities, to thorough tours of hidden villages and medieval towns to discover Italy's lesser-known sides.
      </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="Coliseo">
         <figcaption> Italy</figcaption></figure></a>
      <figure>
    
          <a href="https://www.freecodecamp.org/learn" target="_blank" > <img src="https://cdn.freecodecamp.org/curriculum/labs/alps.jpg" alt="Mountains">
          
       <figcaption> Norway</figcaption></a>
      </figure>

      <figure>
        
        <a href="https://www.freecodecamp.org/learn" target="_blank"> <img src="https://cdn.freecodecamp.org/curriculum/labs/sea.jpg" alt="mexico">
       <figcaption> Mexico</figcaption></a></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/139.0.0.0 Safari/537.36

Challenge Information:

Build a Travel Agency Page - Build a Travel Agency Page

The a element should be wrapping only the img element, right? When that is true, then the structure becomes:

figure
—a img
—figcaption

And figcaption is then the second child of figure.

1 Like

The first child should be an element containing href and image so I am not sure how to do it

I found the mistake. I was closing a element after figcaption and i needed to close it before

1 Like