Can anyone tell me how to add img

Tell us what’s happening:

Your code so far



<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.freecatphotoapp.com/your-image.jpg" alt="A business cat wearing a necktie.">

Your browser information:

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

Challenge: Add Images to Your Website

Link to the challenge:

Hi @Rehman_Ansar!

A couple of things.

Your image needs to be inside the <main> tags not outside those tags.

FCC instructions:
Within the existing main element, insert an img element before the existing p elements.

Also the src url needs to be this one https://bit.ly/fcc-relaxing-cat

1 Like