0

What to do when an image can't load

Wats wrong with this image format https://code.sololearn.com/WBEywv3fyDtD/?ref=app

30th Nov 2022, 4:43 PM
DC Mulenga
DC Mulenga - avatar
6 ответов
+ 1
Hi! this means that the desired picture has been moved, deleted or is located at another address. please, use only direct external links to pictures, not the result of google search results links
30th Nov 2022, 4:49 PM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
+ 1
The attribute should be src instead of href. And the value for src should be the direct url of the image file. If you put something in the alt attribute, it will be showed when the img failes to display.
30th Nov 2022, 6:37 PM
Lochard
Lochard - avatar
+ 1
They are different image file formats. Both can be displayed by most browsers, so the difference is not important in this case.
1st Dec 2022, 1:22 AM
Lochard
Lochard - avatar
0
Is there a difference between .png and .jpg
1st Dec 2022, 12:09 AM
DC Mulenga
DC Mulenga - avatar
0
Very helpful thank you ✊
1st Dec 2022, 10:40 AM
DC Mulenga
DC Mulenga - avatar