HTML-Relative-Links Flashcards

1
Q

How do you indicate the relative link to a parent directory?

A

Use ../ to indicate the folder above the current one, then follow it with the file name in the parent directory.

i.e ../index.html

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do you indicate the relative link to a child directory?

A

For a child folder, use the name of the child folder, followed by a forward slash then the file name.

i.e music/listings.html

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How do you indicate the relative link to a grand parent directory?

A

Repeat the ../ to indicate that you want to go up two folders, then follow it with the file name is the grandparent folder.

i.e ../../index.html

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How do you indicate the relative link to the same directory?

A

To link to a file in the same folder, just use the file name.

i.e reviews.html

How well did you know this?
1
Not at all
2
3
4
5
Perfectly