Learn HTML by Building a Cat Photo App - Step 13

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

  **Your code so far**
<html>
<body>
  <h1>CatPhotoApp</h1>
  <main>
    <h2>Cat Photos</h2>
    <!-- TODO: Add link to cat photos -->
    <p>add link to cat photos <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.">
  </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/105.0.0.0 Safari/537.36 Edg/105.0.1343.33

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

Link to the challenge:

Can someone please put me through on this, I’ve tried everything lol.

Hi welcome to the FCC forum,

Please, next time when you post your question, provide it with a specific question.

Asking a better question will help you understand your current situation.

As I look into Step 13 you need to add a target attribute with the value _blank to the anchor (a ) element’s opening tag, so that the link opens in a new tab.

But you have not done anything as I see. Try to do it first.

Hi @Hezekoteg

I’m pretty sure if you have tried everything you would have passed this by now.

This is your first hint.

Your anchor (a) element does not have a target attribute. Check that there is a space after the opening tag’s name and/or there are spaces before all attribute names.

Now I don’t see a target attribute. Try adding a target attribute

Click here to view more cat photos.

A cute orange cat lying on its back.

Hey can you enclose your code using triple backticsk like so?

```html

paste you code here

```

I meant I pasted the code I wrote and it displayed this on here.
I declared a tag attribute tag="_blank " within the <a attribute immediately after the web address

      <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back." tag="_blank">```

Hey it should be target not tag.

Tag is what makes up an element. → <thisisatag> and </thisisaClosingTag>

And the target attribute should be in the <href> element NOT in <img> element

1 Like

I know you pasted the code. But as you can see here it is being converted to HTML. Thats why we need you to enclose with backticks so that we can see the RAW code.

All of your code if possible.

I just passed, thank you man.

<p>Click here to view more <a href="https://freecatphotoapp.com" target="_blank"> cat photos</a>.</p>

1 Like

Glad it worked man, don’t forget to mark it as Answered. That would be much appreciated :heart:

Also don’t post your solution here as it is not allowed.

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