Tell us what’s happening:
Can’t figure out what is wrong with this. Build a Travel Agency Page. I keep getting error on.
- Each figure element should contain an anchor element as its first child.
- Each figure element should contain a figcaption element as its second child.
- 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.
- Each a element should have a target attribute with the value of _blank. Don’t forget the li
Your code so far
<!DOCTYPE html>
<html lang="en">
<head>
<title>Tropical Travel Agency Page</title>
<meta charset="utf-8">
<meta name="description" content="The Tropical Travel Agency will take you to tropical locations around the world.">
</head>
<body>
<h1>Tropical Travel Agency</h1>
<p>We offer many travel option, , including all-inclusive vacations, cruises, guided tours, and customized itineraries</p>
<h2>Packages</h2>
<p>We have packages for seniors, families, church groups taking you on cruises, trips to other country's, and tropical paradise's</P>
<ul>
<li><a href="#">Group Travels</a></li>
<li><a href="#">Private Tours</a></li>
</ul>
<h2>Top Itineraries</h2>
<figure>
<figure>
<a href="https://www.freecodecamp.org/learn" target="_blank">
<img src="https://cdn.freecodecamp.org/curriculum/labs/colosseo.jpg" alt="The Collosium">
</a>
<figcaption>An Amphitheatre built in Rome under the Flavian emperors of the Roman Empire.</figcaption>
</figure>
<figure>
<a href="https://www.freecodecamp.org/learn" target="_blank">
<img src="https://cdn.freecodecamp.org/curriculum/labs/alps.jpg" alt="The Majestic Alps">
</a>
<figcaption>The Majestic Alps.</figcaption>
</figure>
<figure>
<a href="https://www.freecodecamp.org/learn" target="_blank">
<img src="https://cdn.freecodecamp.org/curriculum/labs/sea.jpg" alt="Paradise">
</a>
<figcaption>A Tropical Paradise.</figcaption>
</figure>
</main>
</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