Learn HTML by Building a Cat Photo App - Step 15

it says " Your anchor (a ) element should have an opening tag. Opening tags have this syntax: <elementName> ."

but
as in my code , it is already there
my code is as follows

Your code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>See more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a> in our gallery.</p>

<!-- User Editable Region -->

      <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" <a> href="https://freecatphotoapp.com" alt="A cute orange cat lying on its back."
      

<!-- User Editable Region -->

    </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/114.0.0.0 Safari/537.36

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

Link to the challenge:

<img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" <a> href="https://freecatphotoapp.com" alt="A cute orange cat lying on its back."

Turn the image into a link by surrounding it with necessary element tags.

The anchor element isn’t around the image element to make it a link.
Also, you’ve added the attributes INSIDE not into the element.

For example:

src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg"
is an attribute of IMG, inside the IMG element.

Welcome to the community!

I suggest using the following as a reference for how to do it. Think of the image as the two words in the anchor in the following.

< opening anchor > < img src= “url” and anything else in the img > < closing anchor >
I hope this helps you!

Happy coding! :slight_smile: