Learn HTML by Building a Cat Photo App - Step 14

Tell us what’s happening:

Describe your issue in detail here.
Need help with 14

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= <target _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 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.3.1 Safari/605.1.15

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 14

1 Like

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.
This will help

1 Like

Hello!
The target attribute and its value “_blank” can be added to the anchor in the same was as the href attribute and its value “url” have been added to the anchor. Make sure to leave a space between the value of the href and the target attribute.

Do not add new brackets around the target and attribute. It should be as the code provided at the beginning of this step with only the target attribute and it value added.

Beginning code for this step quoted from Cat Photo App Step 14

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

Look at this line well:

See more <a href= "https://freecatphotoapp.com">cat photos in our gallery.

This is how you add a target attribute with the value “_blank”:

See more cat photos in our gallery.

The target=“_blank” allows the url to open in a new tab.
Happy coding! :smiley:

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