As @bbsmooth said. You have put the a tags inside the img tag.
This is the line where the error is: <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" <a href="https://freecatphotoapp.com"></a> alt="A cute orange cat lying on its back.">
Now if we get rid of the src and the alt attributes (just for the purpose of explaining why the placement of the a tag is wrong) the code looks like this: <img <a href="https://freecatphotoapp.com"></a> >
If you want an image to redirect you to an URL you need to wrap that image (img element) in an <a></a> tag, but the way you did it the other way around.