+ 1

What is the different between relative path and the absolute path to define href?

Css basics (external css)

16th Aug 2019, 9:37 AM
MOSES SAMUEL KOSE
MOSES SAMUEL KOSE - avatar
2 Réponses
0
A relative path is one that depends on the directory, which means if you change your html file somwhere else it won't work, for example: href='file.html', or 'folder/file.html' An absolute path will work no matter where your html file is, like this: /home/user/webdirectory/file.html or /home/user/webdirectory/folder/file.html Weak explanation, but hope you understood
16th Aug 2019, 9:47 AM
Aymane Boukrouh
Aymane Boukrouh - avatar
0
Thank you so much
16th Aug 2019, 9:51 AM
MOSES SAMUEL KOSE
MOSES SAMUEL KOSE - avatar