Build a Travel Agency Page - Build a Travel Agency Page

Tell us what’s happening:

Need help with this. Unable to figure out what is wrong.

Your code so far

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <title>Travel Agency Page</title>
  </head>
    <meta name="description" content="Travel Agency Page">
  </head>
  <body>
  <h1>Canada, Australia, New Zealand, India</h1>
  <p>Travl opportunities, for everyone, especially for students and tourists!</p>
  <h2>Packages</h2>
  <p>Various packages are offered, including study visas and tourists visas for different time periods!</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<hr>
      <figure>
      <a img href="https://www.freecodecamp.org/learn" target="_blank" src="https://cdn.freecodecamp.org/curriculum/labs/colosseo.jpg" alt="Colloseo"></a>
       <figcaption>
         <p>Image 1</p>
       </figcaption>
      </figure>  
      <figure>
      <a img href="https://www.freecodecamp.org/learn" target="_blank" src="https://cdn.freecodecamp.org/curriculum/labs/alps.jpg" alt="Alps"></a>
      <figcaption>
        <p>Image 2</p>
      </figcaption>
    </figure>
    <figure>
      <a img href="https://cdn.freecodecamp.org/curriculum/labs/sea.jpg " target="_blank" img="https://cdn.freecodecamp.org/curriculum/labs/sea.jpg" alt="Sea"></a>
      <figcaption>
        <p>Image 3</p>
      </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/140.0.0.0 Safari/537.36

Challenge Information:

Build a Travel Agency Page - Build a Travel Agency Page
https://www.freecodecamp.org/learn/full-stack-developer/lab-travel-agency-page/build-a-travel-agency-page

This is the first thing I see that is an issue.

Try running your code through this HTML validator to find other issues:

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

How do you nest an img element inside an a element?

I am sorry but I think that portion is correct?

Hi @grmhkk07

There is nothing between the anchor tags.

It looks like the src attribute for the image element was placed in the opening anchor tag.

Happy coding

Thank you so much. But I still am unable to pass.

Please post your updated code for further help.