Easy
Let us say you have a cd. the starting folder/point in the cd itself is called the root. So if you were to write files directly to a cd without making any subfolders you would be writing to it's root. Hope this is clear.
Now the index.htm file is usually held in the cd root. We put in any other files we want to link into folders and subfolders and link them to the index.htm file (and that's your question!).
This can be achieved by using relative links (and not absolute as in E:\blahblah\blahblah)
Now in the cd root, if you make a folder say
documents, and store a file say
readme.doc
to link to this file from the root index.htm you will have to use the relative link
documents/readme.doc
Now to extend the above example, in the cd root, if you make a folder say videos, and in it a subfolder, say music, and in that subfolder place a file aicha.avi
to link to this file from the root index.htm you will have to use the relative link
videos/music/aicha.avi
To do all this in a simple way if you do not know html:
- Make a folder on your hard disk, say, cdroot
- Open an html editor
- create the index.htm file and save it to cdroot, minimise this editor window
- create the directory (folder) structure you want in cd root along with the files
- maximise your editor and link the file. It should automatically take relative links, else you will have to look at the html source and edit the link manually. Look for what lies between
<a href="">
Pointers:
Always use lower case:
videos instead of Videos or VIDEOS
Avoid breaks in file names, use underscore for breaks:
hardware_tips, instead of hardware tips
Save as index
.htm and not index
.html, older drives will have problem accessing your files