+ 1

how To insert images in html if image file is present in your system or pc in locations other than that of html file ?

Suppose your html file is on the desktop ,and image file is in the c drive of your computer then?

4th Apr 2020, 9:32 PM
Dhyey Patel
4 Respostas
+ 4
Just give the full path of your image. like c://image/abc.jpg
4th Apr 2020, 9:44 PM
A͢J
A͢J - avatar
+ 3
Dhyey Patel Just go to image file location and click on the search bar. Copy the full path and paste in your Code. You can do like this also. https://www.google.com/amp/s/www.pcworld.com/article/251406/windows-tips-copy-a-file-path-show-or-hide-extensions.amp.html
5th Apr 2020, 5:58 AM
A͢J
A͢J - avatar
+ 1
AJ #Level 20 End Day ,i tried it but for some reason it didn't work for me,but still thanks for trying to help me out
5th Apr 2020, 5:52 AM
Dhyey Patel
0
Your file system cannot be accessed from outside... even by a web page (until the page is in your file system): that's a security requirement ^^ The only way to let external web pages having access to your file system is to configure a server, and open internet doors wich could be unsufe if bad handled... It's very much advised to use internet providers / hosting services to upload only the files you want to be more or less public (but accessible trough internet address -- url) and let them handling the security and maintenance of server until you have specific needs and you know what you do ;)
5th Apr 2020, 1:35 AM
visph
visph - avatar