Share this Page URL

Chapter 5. Making the Jump to Hyperspace... > Getting Hyper: Creating Links in HTM... - Pg. 55

Making the Jump to Hyperspace: Adding Links 55 When you sign up with a company that will "host" your web pages, that company will supply you with your very own directory on its server. If you're only putting together a few pages, that directory should be more than adequate. If you're constructing a larger site, however, you should give some thought to how you organize your files. Why? Well, think of your own computer. It's unlikely that you have everything crammed into a single directory. Instead, you probably have separate directories for the different programs you use and other directories for your data files. There's no reason why you can't cook up a similar scheme in your web home. On my site, to give you a for instance, I have separate directories for many of my books (such as this book's creatin- gawebpage directory), a directory called ramblings that stores miscellaneous writings, another called toys that has a few online applications, a graphics directory to store all my image files, and so on. With this type of multidirectory setup, how you reference files in other directories can be a bit tricky. As an example, consider a website that has three directories: / (this is the main directory) things/ stuff/ Here, "things" and "stuff" are subdirectories of the main directory. There are three scenarios to watch out for: · Referencing a file in the same directory.This is the easiest because you don't have to include any directory information. Suppose that the HTML file you're working on is in the writing directory and that you want to reference a page named tirade.html that's also in that directory. In this case, you just use the name of the file, like so: <A HREF="tirade.html">