What is the mistake i made? How to display the image? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 3

What is the mistake i made? How to display the image?

<!DOCTYPE html> <html> <head> <title>Page Title</title> </head> <body> <img src="Divice storage/sololearn/dragon.jpg" alt="mass"> </body> </html>

10th Nov 2020, 6:33 AM
Lazy8055
Lazy8055 - avatar
23 ответов
+ 9
alt tag is used for image description if the image doesn't get printed
10th Nov 2020, 6:44 AM
Alphin K Sajan
Alphin K Sajan - avatar
+ 8
That means Sololearns browser doesnt support your image. So inorder to display it ,try running the code on any other compilers.
10th Nov 2020, 6:48 AM
Alphin K Sajan
Alphin K Sajan - avatar
+ 6
It should be <img src and not scr.
10th Nov 2020, 6:38 AM
Alphin K Sajan
Alphin K Sajan - avatar
+ 6
Then the browser might not support the image. Does mass gets printed?
10th Nov 2020, 6:41 AM
Alphin K Sajan
Alphin K Sajan - avatar
+ 6
Then its Ok
10th Nov 2020, 6:43 AM
Alphin K Sajan
Alphin K Sajan - avatar
+ 4
You cants add any device's image Only the link works on SL Because SL control can't reach to your device's memory So If you want to upload any image on SL There is a way Upload the image on any secured site like Pinterest... Then copy the Google link from there Paste the link on SL server Then you may get that image Hope my answer satisfies you
11th Nov 2020, 9:49 AM
The INDIAN
The INDIAN - avatar
+ 4
Thanks broTanmoy Kumar[📚School📚] No problem😌Lazy8055
11th Nov 2020, 10:44 AM
The INDIAN
The INDIAN - avatar
+ 3
Thanks Alphin K Sajan,Simba,UTKARSH SAHA for your help! Now i understood. Thanks.
10th Nov 2020, 3:46 PM
Lazy8055
Lazy8055 - avatar
+ 3
Sololearn doesn't support local sharing within the phone storage and the app.
11th Nov 2020, 7:07 AM
Tanmoy Kumar Das
Tanmoy Kumar Das - avatar
+ 3
The INDIAN Is ABSOLUTELY RIGHT.
11th Nov 2020, 10:33 AM
Tanmoy Kumar Das
Tanmoy Kumar Das - avatar
+ 3
💞Shanaya💞 Yes Bhai she is correct
12th Nov 2020, 2:52 AM
The INDIAN
The INDIAN - avatar
+ 2
may be try to store the pic in the same folder as Html file.
10th Nov 2020, 6:14 PM
Nattaya Trouillard
Nattaya Trouillard - avatar
+ 2
upload the files to Dropbox and copy the link because you can't add any device files I'm the playground
11th Nov 2020, 5:00 AM
George S Mulbah II
George S Mulbah II - avatar
+ 2
Thank for the huge help bro
11th Nov 2020, 10:17 AM
Lazy8055
Lazy8055 - avatar
+ 2
Thanks sis
12th Nov 2020, 5:06 AM
Lazy8055
Lazy8055 - avatar
+ 2
First of all, directories should not have spaces in their names. Second you don't have any filesystem on sololearn, thus you should write absolute paths!
12th Nov 2020, 6:23 AM
Timur Myngbay
Timur Myngbay - avatar
+ 1
Bro i change but image is not displayed
10th Nov 2020, 6:40 AM
Lazy8055
Lazy8055 - avatar
+ 1
Please help me I am trying for this more than 2 hours Head pain😭😭😭
10th Nov 2020, 6:41 AM
Lazy8055
Lazy8055 - avatar
+ 1
Yes mass is printed
10th Nov 2020, 6:43 AM
Lazy8055
Lazy8055 - avatar
+ 1
I tried on sololearn not on browser
10th Nov 2020, 6:43 AM
Lazy8055
Lazy8055 - avatar