Tell us what’s happening:
Each of the a elements that are children of your figure elements should contain an image.
I cannot understand where I am going wrong.
As the error message says, I have got “Each of the a elements that are children of your figure elements should contain an image.” fulfilled
Your code so far
<!DOCTYPE html>
<html lang="en">
<head>
<title> Travel Agency Page </title>
<meta charset="UTF-8">
<meta name="description" content="Travel Agency Page">
</head>
<body>
<h1>Travel Destinations</h1>
<p> Chennai <br>
Mumbai <br>
Calcutta<br>
Delhi
</p>
<h2>Packages</h2>
<p>Adventure<br>
Luxury<br>
Pilgrimage
</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"> </a>
<figcaption>Fig.1 - The summit of Mount Everest at sunrise.</figcaption>
<img src="https://cdn.freecodecamp.org/curriculum/labs/colosseo.jpg" alt="A snowy ">
</figure>
<figure>
<a href="https://www.freecodecamp.org/learn" target="_blank"> </a>
<figcaption>Fig.2 - The summit of Mount Everest at sunset.</figcaption>
<img src="https://cdn.freecodecamp.org/curriculum/labs/alps.jpg" alt="A snowy mountain">
</figure>
<figure>
<a href="https://www.freecodecamp.org/learn" target="_blank"> </a>
<figcaption>Fig.3 - The summit of Mount Everest at noon.</figcaption>
<img src="https://cdn.freecodecamp.org/curriculum/labs/sea.jpg" alt="A snowy mountain peak">
</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/148.0.0.0 Safari/537.36
Challenge Information:
Build a Travel Agency Page - Build a Travel Agency Page