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.
-
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 links in the list items.
Your code so far
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title> Travel Agency Page </title>
<meta name="description" content="travel agency">
</head>
<body>
<h1> travel destinations </h1>
<p>travel opportunities</p>
<h2>Packages</h2>
<p>the packages are as follows</p>
<ul>
<li><a>Group Travels</a></li>
<li><a>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="broken building"</a> <figcaption>a building damaged in WW1</figcaption>
</figure>
<figure> <a href="https://www.freecodecamp.org/learn" target="_blank">
<img src="https://cdn.freecodecamp.org/curriculum/labs/alps.jpg" alt="some dumb mountains"><figcaption> stupid mountain</figcaption>
</figure>
<figure> <a href="https://www.freecodecamp.org/learn" target="_blank">
<img src="https://cdn.freecodecamp.org/curriculum/labs/sea.jpg" alt="a lake or something"> <figcaption>i think its a lake</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/134.0.0.0 Safari/537.36
Challenge Information:
Build a Travel Agency Page - Build a Travel Agency Page