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

      <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.">

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

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

Link to the challenge:

how should the target attribute look like and does it come before or after the href?

I don’t think the order matters when it comes to multiple attributes. What the target attribute does is decide the location where the user is going to open the link. You need to add the target attribute and give it the value (what its equel to) of _blank so that when the user clicks on the link it opens up in a new tab.

<a target =_blank href="">

Hope this helps!

still not getting it right.

So far you’ve done correctly. The only issue is that you have to add the target attribute to your _blank value. Also no quotation marks are necessary for the _blank value.

<a target=_blank href="">LINK</a>

If you are still having issues you can reset the step and try again or post your new code in ``` marks that come when clicking the </> button.


If you still wish to know how to enter the target attribute and its value, you may wish to look at the following link with its good examples.

Happy coding! :slight_smile:

1 Like

Thank you. I got it .

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