Tell us what’s happening:
I can’t seem to find what’s wrong with the code. I’ve ran it through AI as well as code validating cites. Can you find where the mistake is?
31. 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.
Your code so far
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="description" content="Affordable Travel">
<meta charset="utf-8">
<title>Travel Agency</title>
</head>
<body>
<h1>Travel Agency</h1>
<p>Any of your favorite destination!</p>
<h2>Packages</h2>
<p>Easy affordable packages for yourself and for your friends and family!</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="Colloseum">
</a>
<figcaption>Colloseum</figcaption>
</figure>
<figure>
<a href="http://www.freecodecamp.org/learn" target="_blank">
<img src="https://cdn.freecodecamp.org/curriculum/labs/alps.jpg" alt="Alps">
</a>
<figcaption>Alps</figcaption>
</figure>
<figure>
<a href="https://www.freecodecamp.org/learn" target="_blank">
<img src="https://cdn.freecodecamp.org/labs/sea.jpg" alt="sea">
</a>
<figcaption>Sea</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/138.0.0.0 Safari/537.36 Edg/138.0.0.0
Challenge Information:
Build a Travel Agency Page - Build a Travel Agency Page