Learn HTML by Building a Cat Photo App - Step 13

Tell us what’s happening:
Not sure how to create a target?

  **Your code so far**
    <h2>Cat Photos</h2>
    <!-- TODO: Add link to cat photos -->
    <p>Click here to view more <a href="https://freecatphotoapp.com"_blank>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.">
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge: Learn HTML by Building a Cat Photo App - Step 13

Link to the challenge:

IF you know how to make an img element, then you know how to make a src attribute.
And if you know how to make a src attribute, then you know how to make a target attribute.
all attributes (almost all I should say) look like this:

//  example of 
// attribute  value
//     |      |
<img  src="link">

but the target attribute works with anchor tags, not img, so use the above explanation to try to figure out where to add the target attribute.

I’m sorry but I am being asked to insert “_blank” somewhere within the anchor of line 7 so a new tab is opened, I keep getting this response:

“Hint: Your anchor (a) element does not have a target attribute. Check that there is a space after the opening tag’s name and/or there are spaces before all attribute names.”

The code you initially showed did not have a target attribute at all.
If you have added one, then please post your new code here.

That is what I am confused about

What is a target? How do I create a target? Did I miss a step or over look a step?

yes you did.
target is an attribute.

As I mentioned in my earlier response, it is an attribute just like src is an attribute.
Please take another look at my previous response.

None of this is helping, I’ve placed _blank in front of the href, after href, in front of the link, after the link and I am still getting the same repsonse. I’ve placed <_blank> in multiple areas and I am not getting passed this.

I have also replaced href with _blank

Never mind, got the help form code turtle

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.