Build a Travel Agency Page - Build a Travel Agency Page Question 31 and 32 figcaption

Tell us what’s happening:

Help with questions 31 and 32 please figcaption i’m stuck there

Your code so far

<!DOCTYPE html>
<html lang="en">
  <head>
<meta charset="utf-8">
<meta name="description" content="Free Web tutorials">
<title>Travel Agency Page</title>
  </head>
  <body>
      <h1>Johannesburg</h1>
      <p>Welcome to the heart of Johannesburg where people enjoy life to its fullest.
      </p>
      <h2>Packages</h2>
      <p>We have the heart of africa package that includes 7 nights, breakfast & dinner included, for only R1600 per day or complete package at R10 000 for the whole package.</p>
      <ul>
        <li><a href="Group Travels">Group Travels</a></li>
        <li><a href="Private Tours">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="Sunsets" style="width:100%"></a>
      <figcaption>Sunsets</figcaption>
  </figure>

<figure>
  <a href="https://www.freecodecamp.org/learn" target="_blank">
  <img src="https://cdn.freecodecamp.org/curriculum/labs/alps.jpg" alt="Moon Nights" style="width:100%"></a>
  <figcaption>Moon Nights</figcaption>
</figure>

<figure>
  <a href="https://www.freecodecamp.org/learn" target="_blank">
  <img src="https://cdn.freecodecamp.org/curriculum/labs/sea.jpg" alt="Italy" style="width:100%"></a>
  <figcaption>Italy.</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/134.0.0.0 Safari/537.36 AVG/134.0.0.0

Challenge Information:

Build a Travel Agency Page - Build a Travel Agency Page

1 Like

Welcome to the forum :wave:

What does the text of test 31 say?

    1. Each a element should have an href attribute with the value of https://www.freecodecamp.org/learn. Don’t forget the links in the list items.
  • Failed:32. Each a element should have a target attribute with the value of _blank. Don’t forget the links in the list items.

these are list items with anchor elements nested inside. you need to update these links

now, re read through the hint again and triple check, character by character that your href value matches exactly with what is being asked of you

as for hint 32, you need to follow the same process I gave you with hint 31.

You are missing this part of the hint again

If I look at your anchor elements here, I don’t see a target attributes

When learning programming, it is really important to carefully re read through all instructions, hints and error message because there will be information in there to help you resolve that problem.

Hope that helps.

Thanks The descriptions isn’t very clear what you should do to refer to what anchor links you should work on.

    <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

if it says all of the anchor elements than it’s all of them

is the language of the "list items" confusing you? Or the use of links in that hint?
because this does come up a lot on the forum. but it is hard to tell where the confusion comes in. The original user story says this

  1. All your five anchor elements should have an href attribute with the value of https://www.freecodecamp.org/learn and a target attribute with the value of _blank.

then the hints says Each a element should have.. The hint could say Double check all a elements on the page if that is clearer