Tell us what’s happening:
Each figure element should contain a figcaption element as its second child.
Each of the a elements that are children of your figure elements should contain an image.
tried solving it but coudnt solve it
Your code so far
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset ="utf-8">
<title>travel agency page</title>
<meta name="description" content="this page if fot th people who need help regarding their travel plans">
</head>
<body>
<h1>new york</h1>
<p> travel oppurtunities are get to explore the new country</p>
<h2>Packages</h2>
<p>there three types of packages that you can select</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="Colosseum"> <figcaption>colosseum</figcaption></a>
</figure>
<figure>
<a href="https://www.freecodecamp.org/learn" target="_blank"><img src="https://cdn.freecodecamp.org/curriculum/labs/alps.jpg" alt="something"><figcaption>fig 2: mountains of lights</figcaption></a>
</figure>
<figure>
<a href="https://www.freecodecamp.org/learn" target="_blank"><img src="https://cdn.freecodecamp.org/curriculum/labs/sea.jpg" alt="love it"><figcaption>fig3:sea of clearness</figcaption></a>
</figure>
<figure>
<a href="https://www.freecodecamp.org/learn" target="_blank"><figcaption>something</figcaption></a>
<a href="https://www.freecodecamp.org/learn" target="_blank"><figcaption>something</figcaption></a>
</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/138.0.0.0 Safari/537.36
Challenge Information:
Build a Travel Agency Page - Build a Travel Agency Page