Learn HTML by Building a Cat Photo App - Step 15

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

Your code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>See more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a> in our gallery.</p>

<!-- User Editable Region -->

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

<!-- User Editable Region -->

    </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/112.0.0.0 Safari/537.36 OPR/98.0.0.0

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

Link to the challenge:

Hi there and welcome to our community!

It’s helpful if you can learn to describe what it is you’re struggling with so that we can better understand how to help you. Learning to describe issues is tricky but a vital skill in coding.

It looks like you’re trying to enclose an img element inside an anchor element. Your code is almost correct but the syntax for the closing a tag is not right. Compare that closing tag with others and you should see what is wrong with it.

Also you are missing an equals sign in your href attribute. The syntax for adding attributes is attribute="value".

1 Like

Yeah, i was stuck for like 2 hours, i couldnt understand what was missing. Can you show me whats missing, i know what but i cant see anything wrong(minus the “=”) in my code, so could you please?
Thank you
Martim

This is not correct syntax for a closing tag. The slash comes directly after the first angle bracket, not after the element name. Compare with the closing tags for your h1 and h2 elements for example.

Fix that and add the missing ‘=’ in your href attribute and your code should pass.

1 Like

Oh yeah now i see it, thank you, finally, i ll be more careful next time.
Have a nice day!
Martim

hello friend pls show me you solved your own issued, am still on it

Do not use another users topic for help on your own code

If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Ask for Help button located on the challenge (it looks like a question mark). This button only appears if you have tried to submit an answer at least three times.

The Ask for Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

If you have already created a topic then you need to patiently wait for responses

Thank you.

1 Like

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