Src attribute typo mistake (solved)

Tell us what’s happening:
// running tests Your image should have a

src

attribute that points to the kitten image. // tests completed

Your code so far


<h2>CatPhotoApp</h2>
<main>
<img scr="https://bit.ly/fcc-relaxing-cat.jpg" alt="Relaxing cat">
<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 (X11; Linux i686; rv:68.9) Gecko/20100101 Goanna/4.4 Firefox/68.9 PaleMoon/28.8.4.

Challenge: Add Images to Your Website

Link to the challenge:

Hi @phyl.andreou, welcome to the FCC forum!

There are two things:

  • one of your attributes contains a typo
  • the url is not identical with the one in the task description

Thanks a lot! But, the url in the task description is this:
https://bit.ly/fcc-relaxing-cat
I can’t see any difference with the one I have used. Moreover, if there is a typo in one of my attributes, this attribute is the scr one, because the message I receive doesn’t have to do with the alt attribute. The example given is this one:
<img src="https://www.your-image-source.com/your-image.jpg" alt="Author standing on a beach with two thumbs up.">
As regards the scr attribute, I only replaced the given url with the one in the task description. Again, I can’t see how a mistake could be done.

I corrected my code as this:

Relaxing cat

(The same as before, without the “.jpg” ending)

But, again:

Your image should have a

src

attribute that points to the kitten image.

OK, I found it. I wrote “scr” instead of “src”. Thanks for the help.

1 Like