Learn HTML by Building a Cat Photo App - Step 14

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

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 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/116.0.0.0 Safari/537.36

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

Link to the challenge:

step 14: how to add target attribute _blank?

What is the problem with this code? Why does not it work?

See an example here:

https://www.w3schools.com/tags/att_a_target.asp

Hello!

The target attribute and its value of “_blank” can be added to the a anchor in the same manner as the href attribute and its value were added to the anchor.

Notice the space between the href attribute and the a element.
To add the target and its value _blank it is important to leave the same space between the target and the previous value, or element.

Example: < a attribute=“value” attribute=“value url”>

I hope this helps you!

Keep up the great progress! :slight_smile:

it works i don’t have any probplem here but at step 14 about target attribut _blank

i understand nothing :sweat_smile:

like this?
href=“https://freecatphotoapp.com” href=‘https://freecatphotoapp.com_blank’

Why do you have href twice? Try to follow this format:

<a href="https://www.w3schools.com" target="_blank">Visit W3Schools</a>

You just need to add target="_blank" to this link:

<a href="https://freecatphotoapp.com">cat photos</a>

https://www.w3schools.com/tags/att_a_target.asp

thank you it’s hepfoul

1 Like

thank you you help me too much :relieved:

1 Like

Dude it is so simple just <img src="link" target="_value">
you need to add it this way :blush:

yes it did thank you :ok_hand:

okey fine i did it :+1:

Very glad to know it dude :blush:

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