Learn HTML by Building a Cat Photo App - Step 14

Tell us what’s happening

how do you add the target and _blank to the p line

Your code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->

<!-- User Editable Region -->

      <p>See more <a><target>_blank</target> 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.">
    </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/122.0.0.0 Safari/537.36 Edg/122.0.0.0

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 14

2 Likes

Welcome to the community :smiley:

When unsure how new code is used, its often helpful to see examples of it.
You can find reference pages using a search engine with the new tag/attribute.

This is a website I often go back to when I cant remember how things work.
HTML a target Attribute (w3schools.com)

2 Likes

I think target is an attribute.
Here’s some good info about it: HTML a target Attribute

1 Like

Great work! You just just need to edit a little. Remove the angle brackets ’ < > ’ from the closing angle bracket ’ > ’ in the opening ‘a’ tag up until the closing ‘/target’ tag. Remove the closing ‘/target’ completely. Put ’ = ’ between ’ target ’ and ’ _blank ’ without space. Wrap ’ _blank ’ in quotation ’ “” '. Happy coding!

1 Like

Sorry @Guided ! I just realized I posted the same link as you. My apologies for posting a redundant answer - won’t happen again!

2 Likes

Great minds know where the best links are :smiley:

2 Likes

Thanks - you are very kind!

1 Like

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