<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 -->
<a href= " https://freecatphotoapp.com" ><img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back."</a>
<!-- 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/122.0.0.0 Safari/537.36
You do have a closing a tag, but your img tag is missing its closing angle bracket (>).
Also, you shouldn’t have a space after the = in your href attribute, or a space at the beginning of the url string.
<a href="https://freecatphotoapp.com"><img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg"><alt="A cute orange cat lying on its back."/a>
Sorry, your code does not pass. Hang in there.
You are missing a closing (a) tag after the image.
I have edited your post so that your code displays correctly on the forum.
When posting code you need to enclose it within two sets of triple backticks.
You can do this manually or use the Preformatted Text tool (</> icon or CTRL+e), to create them for you.
You have now closed your img tag too early, as the alt attribute should be inside the img element. Close off the img after the alt attribute. The opening angle bracket (<) for the closing a tag should be immediately before the /a> too, not before the alt attribute.