Build a Travel Agency Page

Hello,
I am stuck on this lesson and I dont know how its wrong. I wrote all the code out and got 4 errors, so I looked up a youtube video on the course, and made sure my code was like his. I looked up this lesson in the forums, didnt see anything that helped me. Could anyone point me in the right direction? i went over this like 50 times lol.
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8" />
    <meta name="description"
    content="This is a Travel Agency page" />

    <title>Travel Agency Page</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’ve distilled France into its alluring essence on our most popular tours—designed as a feast of the country’s most-loved highlights. Whether you’re immersing yourself in life as a Parisian, spending a week getting acquainted with the south and north, or venturing solo, there’s a France tour just for you. </p>
  <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>Top Itineraries</h2>
  <figure>
    <a href="https://www.freecodecamp.org/learn" target="_blank">
    <img src="https://cdn.freecodecamp.org/curriculum/labs/colosseo.jpg" alt="Rome and Center Italy">
   <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="Nature and National Parks">
    </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="South Italy and Islands">
    <a/>
      <figcaption>South Italy and Islands</figcaption>
    </figure>
</body>
</html>

i hope i did this post right, its my first time posting. thanks!

Look closely at this anchor tag. See it?

2 Likes

sorry i forgot to add the sections im not passing. They are:
26. Each figure element should contain a figcaption element as its second child.

  1. Each of the a elements that are children of your figure elements should contain an image.
    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.

OMFG A/ how did i miss that 50+ times… that was literally the only mistake 2x. Thank you!

1 Like

Hi @Slakdev and welcome to our community!

You included your code correctly for the forum, so that’s really helpful, thanks.
For future reference though, there’s a much easier way of asking for help when you’re stuck on a particular step or challenge.

If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Get Help > Ask for Help button located on the challenge.

The Ask for Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Happy coding!

1 Like

Awesome, will do. thanks

1 Like