How can I link to a file on my own computer?


#1

Question

How can I link to a file on my own computer?

Answer

If you are working locally and you wish to link to another file, you usually want this other file to share the same parent directory as the file from which you are linking. This allows you to use a relative path as the value to an anchor’s href attribute. You will learn more about how to create relative paths in exercise 8 of this lesson.


FAQ: Learn HTML Elements - Common HTML Elements - Linking to Other Web Pages
#2

Explain Me more , i am stuck here!


#3

I think in modern browsers the files have to be in the Web directory of your Web Server, you can no longer link directly to files that are elsewhere on the local machine.


#4

They should answer your question in the 8th part of this lesson on “Linking to Relative Pages”.