How can i add a picture in html ? I use <img scr=".....jpg"> but i dosen't work !! | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

How can i add a picture in html ? I use <img scr=".....jpg"> but i dosen't work !!

25th Apr 2017, 3:34 PM
Mourad Benboubaker
Mourad Benboubaker - avatar
3 Answers
+ 11
The "scr" attribute is wrong, it should be "src". Like this: <img src="url.jpg"/> If you are doing this in Code Playground then you need to upload your files (images, audio and video) somewhere online that will host your files and give you a Direct Link to the files (images) or that will allow cloud playing (audio/video) These are the ones I use: - For images: imgur, photobucket, Dropbox - For audio/video: Dropbox I wrote a thread about adding these media files in Code Playground with a code of my own that contains examples. Hope it helps! https://www.sololearn.com/discuss/335228/?ref=app
25th Apr 2017, 6:24 PM
Pao
Pao - avatar
+ 5
Not scr! sRC is correctly. It probably does not work because the link is not valid. <img src="URL" alt="alternativ text"> ..."dog.jpg" - If the image is in the same folder as the code file. ..."img/dog.jpg" - If the image is in the "img" folder (for example). Or use the full path
25th Apr 2017, 3:52 PM
Marina Homenko
Marina Homenko - avatar
+ 2
if you are trying this on Playground, then you need to use web url for audio, video and images.
25th Apr 2017, 6:08 PM
Sandip Bhambre (Sandy)
Sandip Bhambre (Sandy) - avatar