+ 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>

2nd Jul 2020, 11:06 AM
Ifti
Ifti - avatar
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
2nd Jul 2020, 2:30 PM
Coder
Coder - avatar
+ 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.....
3rd Jul 2020, 5:23 PM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 2
are you running this on your computer?
2nd Jul 2020, 11:16 AM
Gordon
Gordon - avatar
+ 2
Ifti If you liked my answer, please mark it with the checkmark and upvote it.
2nd Jul 2020, 2:32 PM
Coder
Coder - avatar
+ 1
Wow it really work
2nd Jul 2020, 2:35 PM
Ifti
Ifti - avatar
+ 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.
4th Jul 2020, 2:19 AM
xiaolaohu12
xiaolaohu12 - avatar
+ 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
4th Jul 2020, 9:08 AM
Bautista Lopez Moreno
Bautista Lopez Moreno - avatar
+ 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.
4th Jul 2020, 9:27 AM
ARPIT JAIN
ARPIT JAIN - avatar
+ 1
Just install link pictures from google play store and upload a pic then copy image url
4th Jul 2020, 10:58 AM
Azakios
Azakios - avatar
0
I tried both
2nd Jul 2020, 11:27 AM
Ifti
Ifti - avatar
2nd Jul 2020, 11:35 AM
Gordon
Gordon - avatar
0
What?
2nd Jul 2020, 12:12 PM
Ifti
Ifti - avatar
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.
2nd Jul 2020, 2:14 PM
Gordon
Gordon - avatar
0
I couldn't hear your voice in that video.
2nd Jul 2020, 2:15 PM
Ifti
Ifti - avatar
0
Really?!! thanks
2nd Jul 2020, 2:31 PM
Ifti
Ifti - avatar
0
Ifti @iftit worked. Can you monitor me on this stuffs pls?
3rd Jul 2020, 8:47 AM
Opeyemil Toheeb
Opeyemil Toheeb - avatar
0
Img tag don't need a slash
3rd Jul 2020, 12:54 PM
Arpine Muradyan
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
4th Jul 2020, 2:34 AM
Hanuma Ukkadapu
Hanuma Ukkadapu - avatar