Home Page in Example Root Directory
This example explores using Relative URLs to link pages together , internally within a Web site.
This is a clickable working copy of the files and links in the diagram below.
The Relative URLs used by the links are all shown in the diagram, so you don't need to read all the source code for this example.
Link #1) To Resume Page in This Folder
Link #2) To Default Page in Sports Sub-Folder
Link # 3) To Stats Page in Football Sub-Sub-Folder
The special file name default.html works the same way as index.html.
When a directory is requested, the default file will be served instead of a listing of all files in the directory.
Therefore, the following is the same as link #2 above
href="sports/"
and the following is the same as link #6 above
href="../../"