+ 1

Please, how can i write the src of an image that is in my laptop for my html code

11th Jul 2022, 11:54 AM
Abdelghani Bensalih
Abdelghani Bensalih - avatar
14 Respuestas
0
Paste the image you want to use on the folder where you have your html document. If the image name is image, you'll have it as: <Img.src="image.jpg" alt=""/> But if you have the image on another folder and the name of the folder is folder, you'll have it as: <Img src="/folder/image.jpg" alt=""> Hope this solves your problem 😍🤩
12th Jul 2022, 3:39 PM
ndukwe chibuike
ndukwe chibuike - avatar
+ 4
Abdelghani Bensalih Upload your image on DropBox. DropBox will give you a link which you can use with src.
11th Jul 2022, 1:00 PM
A͢J
A͢J - avatar
11th Jul 2022, 1:33 PM
JaScript
JaScript - avatar
+ 2
Abdelghani Bensalih You cannot access your local image path on the internet.
11th Jul 2022, 12:07 PM
A͢J
A͢J - avatar
+ 1
Abdelghani Bensalih You can access in your local system through browser because your html file also will be on your local system. But if you have written code on the internet means on any app then you cannot access your local file path because internet doesn't know where is the file exist. So you have to give internet file path. For this you can use DropBox as praneetha already given you a code where step by step process is given.
11th Jul 2022, 12:38 PM
A͢J
A͢J - avatar
+ 1
A͢J aah okay thanks u 😊👍
11th Jul 2022, 1:01 PM
Abdelghani Bensalih
Abdelghani Bensalih - avatar
0
Sololearn cannot display images in your personal device. You need to upload the image somewhere like dropbox or google drive and use that link in your code.
11th Jul 2022, 11:58 AM
praneetha
praneetha - avatar
11th Jul 2022, 12:00 PM
praneetha
praneetha - avatar
0
praneetha thankss, but now I'm writing code in Visual Studio Code not sololearn i just want to access in an image that is in my laptop
11th Jul 2022, 12:10 PM
Abdelghani Bensalih
Abdelghani Bensalih - avatar
0
A͢J sorry, you meant i can't access to my laptop image when writing html code or what exactly?)
11th Jul 2022, 12:12 PM
Abdelghani Bensalih
Abdelghani Bensalih - avatar
0
A͢J ah okay i get it now, i just don't know how I can write in my html file the "src" of my image that is in my system like : <img src="what should I write here to display the image correctly"/>
11th Jul 2022, 12:45 PM
Abdelghani Bensalih
Abdelghani Bensalih - avatar
0
<img src="your image path or link">
12th Jul 2022, 5:42 AM
Nehansh Patil
Nehansh Patil - avatar
0
It is a good idea to put all your image in a folder and use the folder link in your HTML. <img src="your folder link">
12th Jul 2022, 2:47 PM
AYOBAMI OLUWASEYI
AYOBAMI OLUWASEYI - avatar
0
https://postimages.org/ Go to the above website and upload your image. Hey all set. You get your direct url to use in your html img src. Like if it helps.
13th Jul 2022, 11:47 AM
Yusuf Jamal
Yusuf Jamal - avatar