Build a Travel Agency Page - Build a Travel Agency Page

Tell us what’s happening:

  1. Your second h2 element should have the text Top Itineraries.

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

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

Please Help Not sure what I did wrong.

Your code so far

<!DOCTYPE html>
<html lang="en">
  </html>
  <head>
    <meta name="description" Content="non-empty">
    <meta charset="UTF-8">
    <title>Travel Agency Page</title>
   </head>
   </html>
   <h1>Discover Italy</h1>
   <body>
     <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>
     </body>
     </html>
     <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>Tour Itineraries</h2>
      <figure>
          <a href="https://www.freecodecamp.org/learn" target="_blank">
          <img src="https://cdn.freecodecamp.org/curriculum/labs/colosseo.jpg" alt="italy roman colosseum" target="_blank"></a>
          <a href="https://www.freecodecamp.org/learn" target="_blank"><figcaption>Rome and Center Italy</a></figcaption></figure> 
        <figure>
          <a href="https://www.freecodecamp.org/learn" target="_blank">
          <img src="https://cdn.freecodecamp.org/curriculum/labs/alps.jpg" alt="Mountains and National Parks" target="_blank"></a>
          <a href="https://www.freecodecamp.org/learn" target="_blank"><figcaption>Nature and National Parks</a></figcaption></figure>
          <figure>
            <a href="https://www.freecodecamp.org/learn" target="_blank">
            <img src="https://cdn.freecodecamp.org/curriculum/labs/sea.jpg" alt="Sea and Yacht" target="_blank"></a>
            <a href="https://www.freecodecamp.org/learn" target="_blank"><figcaption>South Italy and Islands</a></figcaption></figure>
            </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 Edg/134.0.0.0

Challenge Information:

Build a Travel Agency Page - Build a Travel Agency Page

Check the text of your 2nd H2 element against what was asked.

You have added anchor elements to your figcaptions which you are not asked to do.

I fixed the H2 element but still can’t seem to figure out the anchor elements for the figcaptions

<a href="https://www.freecodecamp.org/learn" target="_blank"><figcaption>Nature and National Parks</a></figcaption>

You aren’t asked to put anchor elements here.

just for this one or for all of the others as well I have erased the ending anchor </figure> but it still says its wrong. it says 26 and 28 are wrong.

Please post your updated code.

For tests 26 and 28, they are checking for nested elements, so you need to structure them all the same way.

I figured it out! Thank you. I wasn’t understanding that I didn’t need all the extra text before the Fig caption.

1 Like