Learn HTML by Building a Cat Photo App - Step 14

Tell us what’s happening:
Describe your issue in detail here.

After I follow the instruction…

The hint " Your p element should have a nested anchor (a ) element with the text cat photos . You may have deleted it or have a typo"

I need an explanation because I don’t understand the hint. What am I missing here?

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

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

Link to the challenge:

Remove the _blank after a
You should add a target attribute with value _blank

Add it in this similar manner. Here href is the attribute and https://freecatphotoapp.com is the value.

1 Like

They are asking you to add a target attribute to the anchor element.
It should be placed next to the href attribute and should have the same syntax.
So just type target and an equal sign followed by the value of “_blank”
(Just like you would create the href attribute, this is no different but the attribute is called target)

3 Likes

Thank youu so much for helping

thank youu so much for helping

1 Like

Thank you. Your explanation was easier to understand than most answers. Have a great day!

1 Like

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