+ 1
Please, how can i write the src of an image that is in my laptop for my html code
14 odpowiedzi
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 😍🤩
+ 4
Abdelghani Bensalih
Upload your image on DropBox.
DropBox will give you a link which you can use with src.
+ 3
This example will help you:
https://code.sololearn.com/WSLZPpBIFgr7/?ref=app
+ 2
Abdelghani Bensalih
You cannot access your local image path on the internet.
+ 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.
+ 1
A͢J aah okay thanks u 😊👍
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.
0
This can help
https://code.sololearn.com/WT3661NHpV3B/?ref=app
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
0
A͢J sorry, you meant i can't access to my laptop image when writing html code or what exactly?)
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"/>
0
<img src="your image path or link">
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">
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.