Learn HTML by Building a Cat Photo App - Step 13 - p7-UhHsMRyBA6B3_btWcf

Tell us what’s happening:
Describe your issue in detail here.
How to add target attribute

  **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" _blank>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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36

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

Link to the challenge:

Add a target attribute before the href attribute like this…
target=“_blank”

1 Like

Bom dia, esta faltando o target=“”

<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" target="_blank">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>

I read this because I was not getting why I couldn’t get the code right. The instructions for this exercise never mentioned a target attribute. If I don’t have a coding background should I try another resource to learn HTML. This program does not seem suitable for a beginner. Thanks!

1 Like

I’m working on exercise 10 and could not pass it without the target attribute.

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