Learn HTML by Building a Cat Photo App - Step 14

I’m having issues with adding a target attribute with the value “_blank” to the anchor element opening tag. kindly help if you know how… thanks

Your code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>See more <a href="https://freecatphotoapp.com"_blank>cat photos</a> in our gallery.</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 mobile information:

Redmi 7 - Android 10 - Android SDK 29

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

Link to the challenge:

The “href” attribute of the “a” element has an incorrect value. You must close the quotes around the URL and remove the underscore before “blank.”

i think to add a target attribute with the value “_blank” it should go this way ,
target=“_blank”

1 Like

I just tried it and it worked… thank you

1 Like

alright… would try it

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