Learn HTML by Building a Cat Photo App - Step 14

Tell us what’s happening:
The challenge says: Add a target attribute with the value _blank to the anchor (a ) element’s opening tag, so that the link opens in a new tab.
I have added " _blanc "after <a before href and its not working, what am I missing?

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 "_blanc" 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 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.87 Safari/537.36

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

Link to the challenge:

I don’t see your attempt above.
Please post it if you want us to review it.

The new target attribute should be inside this anchor tag.

I have edited the code, please check now.

you have added something to the correct location
the problem is what you added is not a valid attribute

In this case the attribute name is
target

and the value is
_blank

So please modify what you wrote so it includes the name and the value
(similar to how you would write an href attribute for eg)

1 Like