Build a Travel Agency Page

Having issues with step 11 You should have at least three figure elements, each containing an anchor element and a figcaption element. You should have at least three figure elements, each containing an anchor element and a figcaption element."

Any ideas?

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <title>Travel Agency Page</title>
    <meta name="description" content="agencia viajes turismo">
  </head>
  <body>
    <h1>Brasil</h1>
    <p>No dejes de viajar este año!</p>
    <h2>Packages</h2>
    <p>Paquete 2025 - 3 Destinos! </p>
    <ul>
      <li><a>Group Travels</a></li>
      <li><a>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"></a>
        <figcaption>Italy</figcaption></figure>
      
      <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">
        <figcaption>Mexico</figcaption></a></figure>
    </body>
    </html>

Hi there. The test isn’t want the anchor element around figcaption element. Add both element separately in the figure element

Thanks, just solved it!

1 Like