Learn HTML by Building a Cat Photo App - Step 14

Tell us what’s happening:
I don’t know how to Add a target attribute.

Your code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <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 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.4 Safari/605.1.15

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

Link to the challenge:

you know how you learned how to add an href attribute to the <a> element?
target is exactly the same

It is written inside the a opening tag next to href
(then it is given a value of “_blank”)

that was quite easy. thank you

1 Like

Perhaps im too stupid/coding isnt for me… but i dont quite understand still where i need to input the “_blank” . Ive tried after the <a, also the href… but none seem to do it. Can you help me.

i wrote a post to help people with this. Check it out and see if you make further progress.
If not, please open your own topic to get more help.

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