0

Help with HTML relative hyperlinks.

I’m trying to input relative hyperlinks in my web page for a project in my class. What is just a general relative hyperlink I can use to go between I few different pages locally?

2nd Jul 2022, 11:45 PM
Ben
Ben - avatar
2 ответов
+ 2
There are three cases. So i'll briefly try to explain each. 1. If the file is in the same folder just write the name of the file with extension. E.g.: file.html 2. If the file is in the parent directory of the current directory than you can use ../ to go up one directory. E.g.: ../file.htm 3. If the file is inside a sibling folder than you can use folderName/ to go inside the folder, and write the file name with extension. E.g.: folder/file.html
3rd Jul 2022, 12:17 AM
Lama
Lama - avatar
0
Thanks bro! I appreciate that. Im a complete novice and he just started learning programming!
3rd Jul 2022, 2:28 AM
Ben
Ben - avatar