Tell us what’s happening:
Hi, I’m struggling with the last two steps. Any help finding where I went wrong would be greatly appreciated!
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.
Failed:32. 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 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
the online html validator I use says you have a mismatched quote somewhere.
You can check it out by pasting your code into it:
then see where the Errors are and try to fix them and perhaps that will help
1 Like
Armegdyllan:
target:"_blank"
also don’t use colons in your html tags. Use equal signs instead
It looks so obvious now thank you for the help!
1 Like
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
one letter missing in the href value here…
1 Like
Thank you I’ll try to be more careful!
it’s easier to copy and paste I find.
ILM
July 18, 2025, 7:27pm
9
I have merged your two topics, please do not create multiple topics for the same challenge