Learn HTML by Building a Cat Photo App - Step 10

Tell us what’s happening:
Describe your issue in detail here.
Help please:‘’ Your anchor (a ) element should have a closing tag. Closing tags have a / just after the < character.‘’
What am i missing here please.

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

Link to the challenge:

Try </a> instead of :point_up_2:t4:

1 Like

Hi… Thanks but this is what i got when i tried your idea.
‘’ Your anchor (a ) element should have an opening tag. Opening tags have this syntax: <elementName> .‘’

Make sure you fix the opening tag too.

<a href
1 Like

Hello… Sorry for disturbing you. I did as you asked me to and i was told my anchor element should be linked to -------… You have either omitted a url or have a typo.
Now my question is how do i link the (a) element to the given site. Hope you understand me . Thanks for helping me out

Try to edit your post with your current code to make us clear what is your issue you are facing right now

</a href= 'https://freecatphoto.com'><a/>

i would point out 3 errors i can see that you would edit.

  1. it should be <a href... not </a href...
    You shouldnt have a / in your opening tag

  2. your closing tag should be </a> not <a/>
    the forward slash should always come before the alphabet.

  3. in your code, there should be no space between your href attribute and teh link <a href="https://freecatphoto.com" ...

hope this helps

1 Like

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