Src attribute to image

Tell us what’s happening:
Your image should have a src attribute that points to the kitten image.
how do i do it


<h2>CatPhotoApp</h2>
<main>


<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
<p>Purr jump eat the grass rip the couch scratched sunbathe, shed everywhere rip the couch sleep in the sink fluffy fur catnip scratched.</p>
</main>

<img src="https://www.your-image-source.com/your-image.jpg">
<img src="https://www.your-image-source.com/your-image.jpg" alt="Author standing on a beach with two thumbs up.">
https://bit.ly/fcc-relaxing-cat

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36.

Challenge: Add Images to Your Website

Link to the challenge:
https://www.freecodecamp.org/learn/responsive-web-design/basic-html-and-html5/add-images-to-your-website

Hi and welcome to the forum :slight_smile: Well, you’ve added three lines of code at the end, and you’re only asked for one img tag. So, read the text of the challenge carefully again and try to put everything they ask for in one element (and don’t forget to use the URL that they gave you in the task, not your own!)

Hope this helps and good luck! :smiley:

thanks but am just a beginner here and i am confused about the three lines of coding you stated

Sure, I get that :slight_smile: You’ve added all three of those lines, but it’s supposed to be just one. The second one (<img src="https://www.your-image-source.com/your-image.jpg" alt="Author standing on a beach with two thumbs up.">) is the closest to what you need to pass the challenge. All the elements are there - you’ve made an <img> tag, you have src and alt attributes, and that’s all you need. But be careful about the URL that you used for the src - you need to use the one provided in the task in order to pass. :slight_smile:

pls can you just tell me what to do and confused

this:

pls i did it but it didn’t come up but can you pls type it the i can understand is confusing

you can follow the “Get a hint” to see the solution
but if you want to try to come to it yourself, show your last code