Hypertext Markup  «Prev  Next»

Lesson 2 File names and directory structures
Objective Describe file naming and directory structures.

File Names and Directory Structures

A Web site is composed of many files. To keep organized, you should have a file-naming convention and a directory structure in place before you start writing files. When you plan your file-naming convention, keep in mind that some platforms, such as UNIX, are case sensitive, while others, such as Windows NT, are not. Be aware that many Internet service providers use UNIX servers.
Before we begin building a website, you should give some thought to the organization of the files and folders of your web page. I could place all of the necessary files in one folder and our HTML code might still work, as long as our file paths were set up correctly, but this would be hard to manage because of its lack of structure.
One can easily create a clean, organized file tree for your website that will make your life easier and improve the experience of your visitors. One can use a graphical user interface for managing files and folders to create a file tree. Your operating system almost certainly comes with one such file manager. If you are on Windows you can use Windows Explorer and Mac OS users can use a program called Finder. The Mac OS X file system stores files within folders, also known as directories. The top, uppermost folder is known as the root directory and folders located within the root directory are known as subdirectories.
The process is almost exactly the same regardless of your file browser, so you should not have any problems developing your directory structure.

Intranet FileNames Structure
You need to be concerned about case sensitivity only with file names. HTML tags are always case-insensitive. Note that some platforms do not allow special characters such as spaces. You can get a good idea about how you should organize your files and directory and how they might appear by looking at the following example:
In the next lesson, you will learn about the various types of editors used to create HTML pages.

Class Path