How to use src attribute

Tell us what’s happening:

Your code so far


<h2>CatPhotoApp</h2>
<main>

<img src="https://www.freecatphotoapp.com/your-image.jpg" alt="A business cat wearing a necktie.">

<src="https://www.freecatphotoapp.com/your-image.jpg">

"
<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>

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 11_0_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36.

Challenge: Add Images to Your Website

Link to the challenge:

Hi @baldwinerrors

Remember src is an attribute of img element, not a element itself.

Not read the challenge again and try to solve it. I have given you a hint.

Thank you.

ohk thanx for ur help

1 Like