See deployed version on:
There are two type of Paths: Absolute paths and relative paths.
- absolute paths ALWAYS INCLUDE DOMAINNAME of the website
- with the (http(s) protocol: http:// or https://
http://www.site.com
https://www.site.com/assets/image.png
- relative links only point to a file or a file path. The ROOT file = index.html. This is the point of departure. From here all local files will be linked.
index.html
/assets/image.png
/css/main.css
To include the correct file from the correct folder:
- ../foldername/filename.file-extension (=to connect to a URL in a file outside of index.html= OTHER LEVEL)
- /foldername/filename.file-extension (=to connect to a file in a folder on the SAME LEVEL).
- foldername/filename.file-extension (=to connect to a file directly, same LEVEL,same folder).