Tell us what’s happening:
Describe your issue in detail here.
where is the attribute placed around the opening tag?
Your code so far
<html>
<body>
<main>
<h1>CatPhotoApp</h1>
<h2>Cat Photos</h2>
<!-- TODO: Add link to cat photos -->
<p>See more <a href="https://freecatphotoapp.com">cat photos</a> in our gallery.</p>
<img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back.">
</main>
</body>
</html>
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36
Challenge: Learn HTML by Building a Cat Photo App - Step 14
Link to the challenge:
Similar to the ‘href’ attribute and its value, add the ‘target’ attribute and its value into the opening anchor tag:
<a href="url" attribute="value"></a>
This is guidance.
‘target’ is the attribute,
“_blank” is the value.
1 Like
this time i am adding the attribute with its value but now am not including the href and its vaulue
which is the symbol for the target attribute
Don’t change the given code in the challenge.
Restart step.
Just add the required attribute and its value.
Read again the previous post. The solution can be found there.
where is the target attribute added and where is its value added to the (a)
anchor.I am not sure if the attribute is suppose to be like this target
and the value should be _blank
Step 14
“Add a target
attribute with the value _blank
to the anchor (a
) element’s opening tag, so that the link opens in a new tab.”
In this challenge, you get the following:
<p>See more <a href="https://freecatphotoapp.com">cat photos</a> in our gallery.</p>
Inside the opening <a>
tag, before the ‘href’ attribute add the ‘target’ attribute set to the value of “_blank”:
<p>See more <a attribute="value" href="https://freecatphotoapp.com">cat photos</a> in our gallery.</p>
what is the value of the attribute?
This should give you everything you need
Given the above. What do you think goes here
attribute="value"
system
Closed
December 13, 2023, 3:45am
10
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.