Learn HTML by Building a Cat Photo App - Step 14

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

Hey guys, I am currently stuck on Step 14 of the Build a Cat Photo App where I’m supposed to add the _blank attribute inside my (a) element that is inside my (p) element except I cant seem to figure out where the _blank attribute is supposed to go at the beginning of my (a) element. Any feedback would be greatly appreciated!

Also if someone could explain to me why its supposed to go where ever it goes so that I know better for next time that would also be greatly appreciated! Thanks for any help in advance!

Your code so far

      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>Click here to view more <a href=_blank "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.">

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 14

Link to the challenge:

you need to recall some of the previous steps probably.

For eg. what did you learn about href attribute?
It is added to the opening tag of the anchor element
And it points the browser at the website location that the link is supposed to open so for eg.
<a href="https://www.freecodecamp.org/learn">Click Here!</a>
Will tell the browser to make the words “Click Here!” into a link and when the user clicks on that link, they will be taken to the the freecodecamp website because that’s the location written down as the href’s value (href stands for hyperlink reference I believe).

Anyhow, so now looking at your code:

Do you think the way you placed _blank makes sense then? (is _blank a website address?)

Nope. It is the value of the target attribute. Just like href is an attribute. “target” is an attribute too.

And it just is written exactly the same way as all other attributes → that is, inside the opening tag of the respective element, in this case that tag is the a tag.

So please click Reset Step to undo the changes and then add the target attribute (just like the href) attribute, inside the anchor tag.

Leave one space between the target statement and the href statement.
(don’t smush them together)

Make sure you include the value of the target _blank in your code.

Ohhh ok I see now what your saying. Thank you so much for your help! I didn’t realize that the word “target” is also an attribute and therefore also needed to be actually typed in there just like “href”. Really appreciate your help!

1 Like

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