Cat Photo App Issues

I am having difficulty in turning an image into a link. Anchor element and elementName issues

  **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 cat photos.</p>
    <a><img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" href="https://freecatphotoapp.com" alt="A cute orange cat lying on its back."></a>
  </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/101.0.4951.64 Safari/537.36 Edg/101.0.1210.53

Challenge: Step 14

Link to the challenge:

Hey there! Welcome to the forums :wave: :slightly_smiling_face:

Remember that the href attribute (at least in this case) belongs to the opening anchor tag, <a>.
Currently you have it in the image tag.

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