I seem to be stuck on this doesnt clarify where the _blank is meant to go in context

Tell us what’s happening:
Describe your issue in detail here.

  **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>
    <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/102.0.0.0 Safari/537.36

Challenge: Step 13

Link to the challenge:

…?

It doesn’t look like you have tried anything yet?

it doesnt? it gave me the option to post here after failing so idk why…

I only see the starting code. Without seeing what you tried, I can’t tell you what’s wrong with the syntax.

im gonna copy and paste what i had here

<p>Click here to view more <a _blank href="https://freecatphotoapp.com">cat photos</a>.</p>

nvm apparently it wont show it in code form lol

Here, you are adding the _blank attribute with no value. Instead, you need a target attribute set to the value _blank.

This is an example of the href attribute set equal to the value "https://freecatphotoapp.com"

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 (').

You must use the target attribute.

oh ok i got it now “=” is a target attribute?

No. = is how you assign the value for an attribute. attributeName=attributeValue

Don’t forget that attributeValue is always surrounded by quotes(“”).

ill just go back threw the lessons to find where i forgot the target code thank you

This is the first place where target is mentioned. It is a new attribute, like href or src

Hope you pass the challenges!

1 Like

then it needs more context because there isnt much of an explanation on what a target element is or how to put it into code…

Put the target element like an href, it’s the same.

based on that explanation this is what i got

<a _blank= href="https://freecatphotoapp.com">cat photos</a>.</p>>

You have a _blank attribute set equal to nothing.

You have used two attributes before, src and href


This is a href attribute with a value of "https://freecatphotoapp.com"


This is a src attribute with a value of "https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg"


You need to make a target attribute with a value of _blank


The name of the attribute goes on the left side of the = and the value goes on the right.

2 Likes

im gonna feel really stupid if i literally just had to put the actual word “target” into this code…