<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>
<a href=https://freecat-photoapp.com img src="https://cdn.freecodecamp.org/curriculum/catphoto-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back."</a>
</main>
</body>
</html>
This is my first coding course and this question has me stuck. This is what I gave as my answer but I keep getting the try again message with the reason being that I deleted src value of the image element.
I’ve edited your code for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.
In the future, I would recommend using the “Ask for Help” button that shows up when you have tried to answer a question three times. It creates a nice lovely post for you to edit and provides a link to the challenge.
But looking at your code, I think a big issue is that you need to close your opening a (anchor) tag and create a proper img (image) element.