Learn HTML by Building a Cat Photo App - Step 14

Tell us what’s happening:

Where do I add the _blank at??
Sorry I’m new on here

Your code so far

      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->

<!-- User Editable Region -->

      <p>See more <a href="https://freecatphotoapp.com">cat photos</a> in our gallery.</p>

<!-- User Editable Region -->

      <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 Edg/

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 14

For the lesson it asks, “Add a target attribute with the value _blank to the anchor (a )”

So you’ll want to add it within your anchor somewhere.
href is also an attribute so it’ll look similar to how you’ve written that.

Thanks for the response. I’m still confused I’ve tried adding in _blank everywhere around (a) and it won’t accept it

Based on what you said, I think the mistake might be you’re trying to add it around you’ll want to add it TO the anchor-<a... It’s not limited to just having one attribute inside it.
If you still can’t figure it out, post your code so we can problem solve.

You need to show your new code

The code is posted above? Still struggling with it

The code is posted above

just add target=“_blank” within your anchor element

<a target="_blank" href="link">text</a>


Hey there after your href url you can add the target attribute. Looks like this target="_blank. The website I provided is informative and will demonstrate how to implement a target attribute. Good luck!

Sorry whats the website I’m not seeing anything

1 Like

you saved me thanks …