Learn HTML by Building a Cat Photo App - Step 14 error

Tell us what’s happening:

Describe your issue in detail here.
i did as told and added a target attribute “_blank” to the opening ‘a’ anchor but it doesn’t work instead it brings this idea. Your p element should have a nested anchor (a ) element with the text cat photos . You may have deleted it or have a typo

Your code so far

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

<!-- User Editable Region -->

      <p>See more <a_blank href="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/119.0.0.0 Safari/537.36

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 14

You appear to have created this post without editing the template. Please edit your post to Tell us what’s happening in your own words.
Learning to describe problems is hard, but it is an important part of learning how to code.
Also, the more you say, the more we can help!

Hi @victorakinyemi52, welcome! Your syntax is not quite correct. Check out the Mozilla web docs for the correct usage of the target attribute (the MDN docs are a GREAT resource when trying to figure out some of these challenges).
https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/target

1 Like

Welcome to the community @victorakinyemi52 !

To add the target attribute and its value"_blank"is not any different than when the href attribute and its value "https://freecatphotoapp.com" were added to the anchor previously in the code.
It is important to leave a space after the a element as you did previously when adding the href. It is also important to leave a space after the end of the value and before the href attribute.

I hope by using the above quote from within your own code, as a reference, you will be able to enter the target attribute and it value into the anchor and be able to move on to the next step.

May your progress continue smoothly for you.

1 Like

thank you, just got it.

2 Likes

Thanks, I was able to solve the problem.

1 Like