+ 2
Why cant I insert image in html?Pls help me.My location is correct😣😣😣😥.what is wrong in this?
<!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <img src="Images/1234.jpg"alt="it is me"/> </body> </html>
18 Réponses
+ 8
Hello Ifti,
If you are trying to insert an image on sololearn, it wont work by giving a file path. What you have to do is go to imgbb.com and upload your desired image there. Choose HTML full linked while uploading. After img src, insert the url imgbb gave you. Now you're all set!
Happy coding ~ Hira
+ 9
Use dropbox this will help you.
Original URL-
https://www.dropbox.com/s/1omcjilnukis0ta/persian-music-03-6559.mp3?dl=0
Step 1:
Remove ? dl=0 from last
Step 2:
Replace www with dl
Step 3:
Replace dropbox with dropboxusercontent
Now Final URL Is-
https://dl.dropboxusercontent.com/s/1omcjilnukis0ta/persian-music-03-6559.mp3
......Thankyou.....
+ 2
are you running this on your computer?
+ 2
Ifti If you liked my answer, please mark it with the checkmark and upvote it.
+ 1
Wow it really work
+ 1
Also, make sure that the path in your local directory is correct. Sometimes if you're in the wrong folder, the image won't display.
+ 1
Hello Ifti! I am pleased to be able to help you with your query, here in sololearn you can only put images from its url, because as the code is saved here and here there is most likely no such img
+ 1
You can give the direct image address of any image from google simple..
Just go to any image and do right click and copy the image address and paste it in src that's it.
+ 1
Just install link pictures from google play store and upload a pic then copy image url
0
I tried both
0
What?
0
if you are coding in a computer, you need to create a project directory, and use the relative path as i have explained in my tutorial linked above.
0
I couldn't hear your voice in that video.
0
Really?!! thanks
0
Ifti @iftit worked. Can you monitor me on this stuffs pls?
0
Img tag don't need a slash
0
Ifti
You are not providing the entire file path. That's why it's not working.
To load a local image, you need to specify the entire file path like: For a file in Internal Storage
file:///sdcard/..folderName../1234.png (for an android)
If you don't know how this works, you can get the file path by opening the file in Chrome browser, go to file:///sdcard and navigate to the desired file and now copy the path.
Here is a code example (but it only works in my phone because the file is not present in your phone.!! )
https://code.sololearn.com/W89GCa5ef4Fr/?ref=app