Build a Travel Agency Page - Build a Travel Agency Page

Tell us what’s happening:

I’m stuck on questions 26 and 28. I don’t know what a elements I’m supposed to add to my figure, but I’m pretty sure they do have an image. And the figcaptions are added, so idk its saying its not

Your code so far

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <title>Travel Agency Page</title>
    <meta name="description"
    content="showing you all of the wonders of travel"></head>
    <body>
    <h1>Europe, Asia, oh my!</h1>
    <p>You can go everywhere!</p>
    <h2>Packages</h2>
    <p> You can go for a week, two weeks, or even a month and witness the world</p>
    <ul>
      <a href="https://www.freecodecamp.org/learn" target="_blank"><li>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="collesuem"></a>
  <figcaption>Visit ruins!</figcaption>
  </figure>
  <figure>
    <a href="https://www.freecodecamp.org/learn" target="_blank"></a>
    <img src="https://cdn.freecodecamp.org/curriculum/labs/alps.jpg" alt="mountain scenary">
    <figcaption> See nature!</figcaption>
    </figure>
    <figure>
      <a href="https://www.freecodecamp.org/learn" target="_blank"></a>
      <img src="https://cdn.freecodecamp.org/curriculum/labs/sea.jpg" alt="ocean">
      <figcaption>And get very wet!</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/139.0.0.0 Safari/537.36 Edg/139.0.0.0

Challenge Information:

Build a Travel Agency Page - Build a Travel Agency Page

Hi @Asterfish and welcome to our community!

Your first figure element is fine but the other two have an issue. The tests require that the figcaption element is the second child, but it’s the third child in the other figure elements. Compare with the first figure to see what the difference is.

These failing tests point exactly to the issue:

26. Each figure element should contain a figcaption element as its second child.

28. Each of the a elements that are children of your figure elements should contain an image.

1 Like

can you say what’s inside this a element?

2 Likes