0
When will we type the value of attribute like this?
<img src="/images/picture.jpg"> Explanation from w3school: picture.jpg is located in the images folder at the root of the current web What is that mean? Is that mean including the folder in code?
7 Antworten
+ 6
Apparently I find it hard to explain, I hope this link can do better than me:
https://www.godaddy.com/help/what-is-my-websites-root-directory-9123
Hth, cmiiw
+ 4
It is said an absolute path, guess it is related to file system structure, I don't know if this makes any sense at all to you, but I hope so:
/ ← root
/images/ ← subdirectory
/styles/ ← subdirectory
[(still) w3schools - HTML file path]
https://www.w3schools.com/Html/html_filepaths.asp
[Difference between absolute & relative path]
https://www.thoughtco.com/absolute-and-relative-paths-3466467
Hth, cmiiw
+ 4
There are paid and free hosting services, you can search the web for "free web hosting" keyword to find a free one for you : )
+ 3
You're very welcome mate : )
+ 1
TQ Now I understand absolute path and relative path. But I don't understand what is "root of web", Where the image locate at? where the folder containing image locate?
+ 1
Em... It seem needing quite long time to understand it. But here is the last question, does create my own website need money? To buy domain name or what.
+ 1
Thank you~