Learn HTML by Building a Cat Photo App - Step 14

Tell us what’s happening:
I’ve read all the posts I can find on this topic and tried every solution. I still get the same hint every time “Your anchor (a ) element should have an opening tag. Opening tags have this syntax: <elementName> .”

  **Your code so far**
    <h2>Cat Photos</h2>
    <!-- TODO: Add link to cat photos -->
    <p>Click here to view more cat photos</p>
<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>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.2 Safari/605.1.15

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

Link to the challenge:

Hi @lizzysmith ,

Your code here is fine :

But, you have changed code above the instructions that you weren’t supposed to :

So please restart the challenge, and only add the a tags around the img.
Do not change anything else.

That worked. I had removed it because one of my bajillion attempts said that I should only have one <a element. I mistakenly believed it was meaning to remove the one above.
Passed it now.

1 Like

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