How to add the attribute tag "_blank" to make the cat link open on a new page

I keep getting an error message:
it tells me to add the attribute tag inside the (a) element but I’m not sure what I’m doing wrong**

    <h2>Cat Photos</h2>
    <!-- TODO: Add link to cat photos -->
    <p>Click here to view more <a href= ""_black"">cat photos</a>.</p>
    <img src="" alt="A cute orange cat lying on its back.">
  **Your browser information:**

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 13816.55.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.86 Safari/537.36

Challenge: Step 13

Link to the challenge:

I’ve edited your post for readability. 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 (').

<a href= ""_black"">

The instructions say:

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.

It should be part of a new target attribute, but you’ve added it into the value for the src attribute. Leave that one alone, create a new target attribute and give it that value.

it should be

[answer redacted by moderator]
1 Like


Please don’t give the answer directly. Please lead people to the answer. This is a learning platform. Please don’t just give them something they can cut and paste.

yeah that’s right, i agree with you

Well i figured it out after you explained what i was doing wrong, his answer was just reassurance in the end. I do understand the benefit of finding the answer through trail and error. Thank you guys.

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