Error about should have a src attribute

Tell us what’s happening:

Your code so far


<h2>CatPhotoApp</h2>
<main>
<img scr="https://bit.ly/fcc-relaxing-cat" alt="A business cat relaxing."/>

<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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.111 Safari/537.36 Edg/86.0.622.58.

Challenge: Add Images to Your Website

Link to the challenge:

@farzaneh.haghani you wrote / at the end of the img tag the img tag should be like this

<img src="" alt="">

1 Like

@farzaneh.haghani Iit appears that you have “scr” instead of “src”

3 Likes

It’s not React.js that you need self closing tags, also their’s a typo in source attribute of image tag!

Hi I am stumped on this. is this some kind of trick question I am not getting it?
mia