Learn HTML by Building a Cat Photo App - Step 13

Tell us what’s happening:
Hello! I’m on step 13 and I still can’t seem to understand the “target” attribute. Specifically how to add “_blank” into my line of code. It tells me to put it inside of the anchor element and while I’ve tried a bunch of different ways it still ends up wrong. If anybody can help me out so I can continue it would be much appreciated!!!

  **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/104.0.5112.102 Safari/537.36 Edg/104.0.1293.70

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

Link to the challenge:

I will try to teach you the general way of understanding these terms first.
As you know an HTML tag usually looks like this

On the other hand, an HTML attribute usually gets added onto a tag such as this:
<img src="link to an image">

The src is the attribute of the img tag

Now looking back at the instructions given. They say that:

target is the attribute of the a tag

So then, how should target look like? (Same thing as saying src is the attribute of the img tag, so therefore target is the name of the attribute - just like src is, and then you will need an equal sign, and then after that double quotes with a value inside. The value is provided in the exercise as _blank. So we use that inside the quotes).

Hope this helps

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