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="Affordable holiday packages for everyone"/>
</head>
<body>
<h1>Travel Destinations</h1>
<p>Travel Opportunities</p>
<h2>Packages</h2>
<p>Various packages</p>
<ul>
<li><a href="https://www.freecodecamp.org/learn" target="_blank">Group Travels</li></a>
<li><a href="https://www.freecodecamp.org/learn" target="_blank">Private Tours</li></a>
</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="colosseo"><a/>
<figcaption>historical building</figcaption>
</figure>
<figure>
<a href="https://www.freecodecamp.org/learn"target="_blank">
<img src="https://cdn.freecodecamp.org/curriculum/labs/alps.jpg" alt="alps"></a>
<figcaption>famous mountains</figcaption>
</figure>
<figure>
<a href="https://www.freecodecamp.org/learn" target="_blank">
<img src="https://cdn.freecodecamp.org/curriculum/labs/sea.jpg" alt="sea"></a>
<figcaption>charming view</figcaption>
</figure>
</body>
</html>
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36
Challenge Information:
Build a Travel Agency Page - Build a Travel Agency Page