Web Page Structure
Module 28


As mentioned earlier, all files in a web site are linked by their relationship to each other.  One common approach is to create a folder in which all files will be stored.  Within that folder, you would create your home page for the site and name it index.html.  If the site is realtively small, you would create all web pages for the site in the folder and link to them from the index page.  You might consider storing all resources for those pages in a folder called Resources or Images or Assets.

For a larger site, or one where the work of creating web pages would be distributed to others, you might create folders at the same level as the index page.  Each of these folders would contain its own index.html file and its own Resources folder.  When done this way, linking to the index page inside each folder is done by linking to the folder name and the index file is opened as the default web file.  (See Module 20 for additional information)

To see how other sites are structured, you can look at the text in the URL Location box at the top of a web page when the page is displayed (see below).  This shows that you are looking at the mklinux site, that the site has a folder called getting_started and in that folder is another folder called whatnow.  One of the files in that folder is called user.html and that is the file currently being displayed on the screen.

 
 
 

By looking at the bottom of the Netscape browser window, you can also preview the address you will jump to when you pass the pointer over a web link, as shown in the screen shot below.  This shows that at the mklinux site, they have a folder called info and in that folder is a file called newsfr.html.


 

Being aware of how other web sites are structured may provide you with ideas for structuring your own site.


Composer Module Home  | DSISD Home | Next Module