HTML-RELATIVE-LINKS Flashcards
How do you indicate the relative link to a parent directory?
Use ../ to indicate the folder above the current one,
then follow it with the file name.
(Note: Additional spaces have been added here and there to abide by the website’s display rules. [Cannot display code without premium version])
How do you indicate the relative link to a child directory?
For a child folder, use the name of the child folder,
followed by a forward slash, then the file name
How do you indicate the relative link to a grand parent directory?
Repeat the ../ to indicate that you want to go up
two folders (rather than one), then follow it with the
file name.
How do you indicate the relative link to the same directory?
To link to a file in the same folder, just use the file
name. (Nothing else is needed.)