+ 3
When I transfer my html files from my pc to phone the images is not seen in my phone due to source path .how can I get images??
4 ответов
+ 5
You can get the images by placing the images in the same folder in which your html file is stored in your phone.
Important - The 'src' attribute of 'img' tag should contain only the name of image instead of previous source location of your PC.
Example- <img src="image_name.jpg">
+ 4
you can upload them to imgur(or something else online) and use the path to get to the website.
+ 4
Alternatively use a relative path, don't save the images in a separate folder than your html files, when referring to the images don't use this
C:\user\document\image\pics1.png
Rather use something relative refer directly to the image project
ImageFolder\pics1.png.
Again be sure to make the folder present in the site directory.
It should work.
+ 2
if your HTML is in an seperate folder like website.com/animals/index.html you can use /.. and go back a folder like website.com/animals/index.html/../css/main.css, that’s basicly the same as website.com/css/main.css