Learn HTML by Building a Cat Photo App - Step 13

Tell us what’s happening:
having troubles placing the target attribute, it doesnt seem to fit anywhere

  **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><target=_blank>.</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 (X11; CrOS x86_64 13982.69.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.130 Safari/537.36

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

Link to the challenge:

It looks like you have a couple issues here.

  1. target is an attribute of your link and should be contained within your a element. You currently have your target outside of the a element inside of its own angled brackets <>
  2. You should use quotes when defining the attribute like this: target=“_blank”

I hope that helps.

4 Likes

Thank you so much for this. I couldn’t find anything in the other answers that helped me. I still don’t really understand the point of this attribute.

Thank you trying to get an answer from hbar1st was very difficult.

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