Specifying a Default or “Home” Page

Most servers have a system for recognizing a default page in each folder, based on the name of the file. If your visitors type a URL with a directory but don’t specify a file name, the default file is used (Figure 2.16).

Figure 2.15. Save the file as either index.html or default.htm in order to designate the file as the default page that should be opened in that directory.

Figure 2.16. When the visitor types the path to the directory, but omits the file name itself, the file with the default name is used.

To specify a default or “home” page:

1.
First, ask your ISP how such a default page should be named. ...

Get HTML, XHTML, & CSS, Sixth Edition: Visual QuickStart Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.