Learn HTML by Building a Cat Photo App - Step 14

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

i dont understand what a target is or what it want me do do with the _blank

  **Your code so far**
    <h2>Cat Photos</h2>
    <!-- TODO: Add link to cat photos -->
    <p>Click here to view more <a href="https://freecatphotoapp.com">cat photos</a>.</p>
    <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:

Hello, welcome to the forum.

A “target” is an attribute. Just like “src” and “alt” above are both attributes of the img element.

target is used with anchor elements.
_blank is the value you should give target.

So add the attribute to the opening tag of the anchor element. And then put an equal sign and then put the value “_blank” in double quotes (the same way you treated the alt or src attribute, anytime you are asked to create an attribute just do the same exact thing).

The target attribute tells the browser where you would like the new website to be displayed. For eg, in the same tab? In a new tab? Or even a whole other window? That’s the purpose of target inside the anchor element.

Hope this helps.

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