Learn HTML by Building a Cat Photo App - Step 14

Help! I’m stuck in Step 14? Do you know where I make it wrong?

  **Your code so far**
<html>
<body>
  <h1>CatPhotoApp</h1>
  <main>
    <h2>Cat Photos</h2>
    <!-- TODO: Add link to cat photos -->
    <p> <a href="https://freecatphotoapp.com">cat photos<img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back."></a></p>
  </main>
</body>
</html>
  **Your browser information:**

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

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

Link to the challenge:

reset the lesson then make a new a element under the image give the a element an href
https://freecatphotoapp.com then put the image inside the a element

I still didn’t get it…it says My anchor element doesn’t have a opening tag. What does that mean?

Can you share the recent code that you’ve written ?

to write an a element you need an opening and closing bracket

<a></a>

you have a unneeded p element remove that and it should work

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