so I do not need closing tag for this target anchor
My old code
Click here to view more cat photos.<a_blank>
Revised Code
<p>Click here to view more <a href="https://freecatphotoapp.com">cat photos.a_blank</a></p>
Not sure how to apply the target anchor with using a tag<>
Tell us what’s happening:
Can you tell me or display the correct code for step 13 to make comparisons of possibly reading the instructions wrong.
**Your code so far**
<html>
<body>
<h1>CatPhotoApp</h1>
<main>
<h2>Cat Photos</h2>
<!-- TODO: Add link to cat photos -->
<p>Click here to view more <a href="https://freecatphotoapp.com">cat photos.</a></p>
<a _blank></a>
<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 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36
Challenge: Learn HTML by Building a Cat Photo App - Step 13
Link to the challenge:
@jnsmith.professional please remove the “<a _blank></a>” tag and remove the dot in “< a href=“https://freecatphotoapp.com”>cat photos.</a>”
then where in the code do the anchor command *<_blank> is inserted
Griff
7
Hi!
You need to add target _blank to the existing anchor element. Do not make a new one.
A href is an example of an attribute and value.
<a href=‘example.com’></a>
You need to write the target
attribute with the value of blank
in the same format. Do not remove the href value and attribute.
Also it is not allowed to people the answers to the lessons on the forum. Hints and tips are fine but not full working solutions.
1 Like
Tell us what’s happening:
I’ve add the target attribute anchors as instructed after my <a href=> command, yet my new code is still incorrect
**Your code so far**
<html>
<body>
<h1>CatPhotoApp</h1>
<main>
<h2>Cat Photos</h2>
<!-- TODO: Add link to cat photos -->
<p>Click here to view more <a href="https://freecatphotoapp.com"><a _blanket=
'https://freecatphotoapp.com">cat photos</a></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 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36
Challenge: Learn HTML by Building a Cat Photo App - Step 13
Link to the challenge:
Look at the syntax highlighting here. The editor is trying to tell you there is a syntax bug.
You should have only one opening anchor tag, so you’ll need to fix that up.
Also, this isn’t how you set a target
attribute:
i meant you don’t need _blanket
system
Closed
11
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.