Learn HTML by Building a Cat Photo App - Step 14

Hello I don’t understand how to a target and _blank. please help me.

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

<!-- User Editable Region -->

      <p>See more <a href _blank="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/115.0.0.0 Safari/537.36

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

Link to the challenge:

You missed target attribute in your code.

For example;


<p> text <a href="exam.com" target="#"> link-able text </a></p>

Hello!
You do have the correct idea. However, the target attribute needs to be matches with its value “_blank”.
Currently, it is with the href and separating the href attribute from its value "
https://freecatphotoapp.com”> cat photos in our gallery.< /p>"

I suggest placing the target attribute with its “_blank” value behind the a anchor and before the href attribute.

I hope this helps you.

Happy coding! :slight_smile:

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