Learn HTML by Building a Cat Photo App - Step 14

I’m having a lot of trouble trying to figure this out, the “hint” says " your anchor (a) element should have an opening tag. opening tags have this syntax . I would appreciate any helpful feedback!

  **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 <a target="_blank" href="https://freecatphotoapp.com">cat photos</a>.</p>
   <img src=https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg alt="A cute orange cat lying on its back.">
  </main>
</body>
</html>
  **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/14.1.2 Safari/605.1.15

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

Link to the challenge:

I don’t see where you put the opening anchor tag for the anchor around the img element?

im confused if I’m supposed to place it to the left or the right of img, and if its before the< next to img.

Both?

An anchor element has both an opening and closing tags. You need to place the opening and closing tags so that the full img element is in inside of the anchor element.

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