Learn HTML by Building a Cat Photo App - Step 15

failing to wrapan image with necessary tag elements to turn the image into a link

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" alt="<a href=https://freecatphotoapp.com"> 

<!-- 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/119.0.0.0 Safari/537.36 OPR/105.0.0.0

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 15

Welcome to the community @mwavheranoble !

Here is an excellent article on how to turn images and text into links.
It includes great examples and is authored by one of the Leaders.

Wishing you good progress.

You are close. Need to move the link address out of img and into an a element.
For the img to be a link it must be inside the a element open and closing tags.
Mod edit: removed

@KenStoneBlue

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

1 Like

Oh OK sorry I didn’t know that.