Build a Travel Agency Page - Build a Travel Agency Page

Tell us what’s happening:

Can anyone tell me what is going on here? I am passing all tests except 31 and 32. No idea how the href attribute is incorrect or the target attribute. I have tried everything I can think of it feels like those are 2 of the easiest parts but apparently im way off. Thanks in advance!

Your code so far

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta name="description" content="The number 1 travel agency in the world">
    <meta charset="UTF-8">
    <title>Toms Travel Agency</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>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="A photo of the colloseum">
          </a>
        <figcaption>Rome and Center Italy.</figcaption>
        </figure>
      <figure>
        <a href="https://www.freecodecamp.org/learn" target="_blank">
          <img src="https://cdn.freecodecamp.org/curriculum/labs/alps.jpg" alt="Beautiful mountain photo">
          </a>
        <figcaption>Nature and National Parks.</figcaption>
        </figure>
      <figure>
        <a href="https://www.freecodecamp.org/learn" target="_blank">
          <img src="https://cdn.freecodecamp.org/curriculum/labs/sea.jpg" alt="A photo of the sea">
          </a>
        <figcaption>South Italy and Islands.</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 Edg/136.0.0.0

Challenge Information:

Build a Travel Agency Page - Build a Travel Agency Page

Hi and welcome to the community!
As the instructions suggest, don’t forget about the links in the list item.

Good luck!

Im confused about that. Am i supposed to add the same link from the figure section? It says to enclose the list items with an anchor element but I dont see any instruction to incude a link until it tells me not to forget the links at the end. I know I probably sound stupid lol but I swear im a quick learner

that was it. Thank you so much!

1 Like

Yes, that is mentioned in the User stories number 13. It says all five anchor elements should have the href and target attributes with the same url. You have three anchor elements inside the figure elements and two inside your list items, so that would be 5.
It can be confusing at times, so don’t worry.
Happy coding!

1 Like