Learn HTML by Building a Cat Photo App - Step 14

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

I’ve been struggling with this issue for an entire day since yesterday. I just do not understand. Sometimes I am told to have only one opening on the anchor, which I believe I already have. I have tried the ‘target’ function which seems correct, but of course I am unsure about that as well. Can someone please direct me where the issue is on this code? Thank you.

  **Your code so far**
<html>
<body>
  <h1>CatPhotoApp</h1>
  <main>
    <h2>Cat Photos</h2>
    <!-- TODO: Add link to cat photos -->
    <p>Click here to view more <a target="_blank" 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.">
     <a> href="https://freecatphotoapp.com" target="_blank">
     
  </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/104.0.0.0 Safari/537.36

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

Link to the challenge:

Hello and welcome to FCC.

You didn’t close your “a” element, please be advised how html tags work, they have opening and closing tags except some of them which you will be familiar with them a bit later like “input” or " meta" tags.

This is not a valid opening anchor tag. Compare it to the other opening anchor tag you wrote.

Also, this tag must come before the img element.

Hello, thank you.

I have made changes and this is the result:

<a href=“https://freecatphotoapp.com” target=“_blank” A cute orange cat lying on its back.

Can you advise further? Thanks a lot.

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

Closer, but your opening anchor tag has no >

Also, the closing anchor tag needs to come after the img element.

Thank you.

I have tried this previously and it seems to nullify the href. As soon as > is added, it shows the code on the screen, instead of the picture.
Thanks again for the help.

I meant on top of the picture

Please post your actual code

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

You went back to this broken syntax. If it was broken before, it will still be broken now.

You have an example of a correct anchor tag here:

Like I said a few posts ago, you need a valid opening anchor tag, then your image element, then a valid closing anchor tag.

Currently, your opening tag is not valid syntax and your closing tag is in the wrong place.

Great. Finally completed this task.
Cheers.

1 Like

your “anchor tag” is still open…