+ 2
How to add image ( HTML)
What happing with code why it don't show image <!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <!-->this is name of image--> <img src="./asset/India.jpeg" alt="xmap"/> <br/><br/> <!-->this is the location of image--> <img src="/storage/emulated/0/Download" width="25%" height="25%" alt="ymap"/> </body> </html>
8 Respostas
+ 9
hey buddy your code is right but a thing that solo leaen doesn't supports the data of local computer. You have give the links from the internet. Cz solo learn code playground never exists any file or folder from your device storage. So the ide doesn't know what is your device.
Hope I helped you happy coding.
+ 5
Use dropbox
+ 4
put the img in the same directory of the html file and try again ,
<img src="india.jpeg" />
+ 3
anju devi Let's say that index.html is in the root directory and my image is in the assets directory like below
index.html
assets/
|--India.jpg
My image tag would then have the following because the paths are relative to the served html file:
<img src="./assets/India.jpg"/>
If you are asking how to use images in Sololearn, you should check use search bar, or follow my Firebase storage tutorial.
0
Images
https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Images_in_HTML
audio:
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio
video:
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video
How To Upload your phone images on SoloLearn using phone
https://code.sololearn.com/WT3661NHpV3B/?ref=app
Upload content with Dropbox [Tutorial]
https://code.sololearn.com/WW6t4B73kJVz/?ref=app
How to host/upload an image (IMGBB way)
/by Farhanaz/
https://code.sololearn.com/Wy3lrXNwGsgJ/?ref=app
Upload content with Google drive
https://code.sololearn.com/Wa25A17a19a1/?ref=app