Tell us what’s happening:
i am having trouble completing 29-31 please help thanks
Your code so far
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Travel Agency Page</title>
</head>
<body>
<h1>Dominican Republic, Puerto Rico, Haiti</h1>
<p>View Great Scenery</p>
<h2>Packages</h2>
<p>Cheap Flights, Free Food, Free Hotel</p>
<ul>
<li><a>Group Travels</a></li>
<li><a>Private Tours</a></li>
</ul>
<h2>Top Itineraries</h2>
<figure><a><img alt="" src="https://cdn.freecodecamp.org/curriculum/labs/colosseo.jpg" href="https://www.freecodecamp.org/learn" target="_blank"></a><figcaption>Beautiful Sites</figcaption></figure>
<figure><a><img alt="" src="https://cdn.freecodecamp.org/curriculum/labs/alps.jpg" href="https://www.freecodecamp.org/learn" target="_blank"></a><figcaption>Great Terain</figcaption></figure>
<figure><a><img alt="" src="https://cdn.freecodecamp.org/curriculum/labs/sea.jpg" href="https://www.freecodecamp.org/learn" target="_blank"></a><figcaption>Clear Water</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/132.0.0.0 Safari/537.36 Edg/132.0.0.0
Challenge Information:
Build a Travel Agency Page - Build a Travel Agency Page
Please talk to us about how you are stuck. Thanks
1 Like
ILM
January 21, 2025, 5:33pm
3
Each img
element should have an alt
attribute with an appropriate value.
Each a
element should have an href
attribute with the value of https://www.freecodecamp.org/learn
.
Each a
element should have a target
attribute with the value of _blank
.
How do you think you are satisfying these tests?
Actually I figured out what was wrong for my alt but I don’t understand what’s wrong with 30,31
Actually I figured out what was wrong for my alt but I don’t understand what’s wrong with 30,31??
ILM
January 21, 2025, 5:44pm
6
are you sure each of your a
elements satisfy those conditions?
Can you try talking about how you are stuck instead of just saying which tests are failing?
1 Like
From my understanding i thought i was because my href, and target in inside of my a’s
ILM
January 21, 2025, 5:52pm
9
are you sure that is all your a
elements and you don’t have any other?
I’m stuck because of the placement of my a’s but dont see what im doing wrong
ILM
January 21, 2025, 5:53pm
11
can you show your updated code?
When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>
) to add backticks around text.
See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').
<!DOCTYPE HTML>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Travel Agency Page</title>
</head>
<body>
<h1>Dominican Republic, Puerto Rico, Haiti</h1>
<p>View Great Scenery</p>
<h2>Packages</h2>
<p>Cheap Flights, Free Food, Free Hotel</p>
<ul>
<li><a>Group Travels</a></li>
<li><a>Private Tours</a></li>
</ul>
<h2>Top Itineraries</h2>
<figure><a><img alt="stadium" src="https://cdn.freecodecamp.org/curriculum/labs/colosseo.jpg" href="https://www.freecodecamp.org/learn" target="_blank"></a><figcaption>Beautiful Sites</figcaption></figure>
<figure><a><img alt="beautiful" src="https://cdn.freecodecamp.org/curriculum/labs/alps.jpg" href="https://www.freecodecamp.org/learn" target="_blank"></a><figcaption>Great Terain</figcaption></figure>
<figure><a><img alt="clear water" src="https://cdn.freecodecamp.org/curriculum/labs/sea.jpg" href="https://www.freecodecamp.org/learn" target="_blank"></a><figcaption>Clear Water</figcaption></figure>
</body>
</html>
ILM
January 21, 2025, 6:06pm
13
yahskid77:
<a>
why you think your a
elements satisfy the tests?
where have you added href
and target
?
1 Like
i thought it was correct because it has an opening and closing tag, its over the href, and the target as i thought it said to have it ??
ILM
January 21, 2025, 6:12pm
15
can you point out where you added the href
and target
attributes? I can’t see them
<figure><a><img alt="stadium" src="https://cdn.freecodecamp.org/curriculum/labs/colosseo.jpg" *href="https://www.freecodecamp.org/learn" target="_blank"></a><figcaption>Beautiful Sites</figcaption></figure>
ILM
January 21, 2025, 6:16pm
17
yahskid77:
<a>
no href
or target
here. Where are they?
ILM
January 21, 2025, 6:20pm
19
well, that is not an a
element, is it?