Build a Travel Agency Page - Build a Travel Agency Page

Tell us what’s happening:

can I please get help with understanding where i have gone wrong with the images? and fig caption as a second child?

Your code so far

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="description"    
      content="discover expert tips on domestic and international travel. find packages that suit a range of travel needs.">
  <title>Travel Agency Page</title>
  </head>
  <body>
  <h1>Discover Italy </h1>
  <p>Discover rich heritage, unique culture and natural landscapes in beautiful Italy!</p>
  <h2>Packages</h2>
  <p>Discover the ancient beauty of soulful Italy.</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="The Collosseum"/>
  <figcaption> The Collosseum</figcaption>
</figure>
<figure>
  <a href="https://www.freecodecamp.org/learn" target="_blank">
  <img src="https://cdn.freecodecamp.org/curriculum/labs/alps.jpg" alt="The Beautiful Alps"/>
  <figcation>The Beautiful Alps</figcaption>
</figure>
<figure>
  <a href="https://www.freecodecamp.org/learn" target="_blank">
  <img src="https://cdn.freecodecamp.org/curriculum/labs/sea.jpg" alt="The stunning coast"/>
  <figcaption>The Stunning Coast</figcaption>
</figure>
 </body>
 </html>

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:139.0) Gecko/20100101 Firefox/139.0

Challenge Information:

Build a Travel Agency Page - Build a Travel Agency Page

Your img elements should be nested inside the anchor (a) elements but the anchor elements are missing their closing tags. Fixing this should solve the issue with figcaption being second child too.

1 Like

thank you, yes this worked!