Common Extensions | Help Files | Style Craft
Guidelines for Naming Files and Folders
In order for your files to traverse platforms successfully, you must name them in accordance with established file naming conventions, and at a lowest common denominator "eight dot suffix". All computers including Macintosh use file extensions to determine what application to associate the file with.
Mac OS or Windows will not be able to use a file if it is named incorrectly, they must have an extension also know as suffix.
These file naming conventions should be applied to directories (aka "folders") as well.
This means that in your filenames, folder names, and anchor names there should be:
No SPACES or TABS
No COMMAS or APOSTROPHES
No SLASHES or QUOTES
No # & % + * = @ ~ ^ $
No < > ( ) [ ] { } : ; ? !
No Other Unusual Characters
All lower case lettersNaming Your Files for the Web
Browsers and servers have their own set of rules when they try to read the files you create for the web. Follow the suggestions below and your pages will speed to your audience without a hitch.
Rule Do it like this... and not like this... 1. Never use spaces within, before or after the name of any file that is destined to go on a web server. howtofish.html
abouttrawlers.html sand_crab.gifhow to fish.html
abouttrawlers .html
sand crab.gif2. Never use unusual characters within a file name. Avoid punctuation marks (other than period hyphen and underscore), accented vowels and other special characters. gmunoz.html
oceanvolcano.gif
gmuñoz.html
ocean/volcano.gif
3. Keep your file names short but meaningful. howtofish.html
sandcrab.gifhowtofishtutorialpart1.html
picture352.gif4. All web page files must end in
- .html or
- .htm
All graphic files must end in
- .gif or
- .jpg or
- .jpeg
webquest1.html
jellyfish.jpgwebquest1
jellyfish5. Some servers are case-sensitive. That is, the file hello.html is regarded as a different file than Hello.html. If you use upper case, you need to be consistent in all your links to that file.
The safest course is to keep everything in lower case.
theend.html TheEnd.Html HTML (hypertext or web) filenames should end in the suffix ".html" or ".htm". If you are using a Mac or Windows 95, NT, or 98, please use the suffix. Example:
myhomepage.htmlIf you are on a DOS or Windows 3.1 PC or think your pages might ever be served from a DOS or Windows 3.1 PC, use the suffix ".htm" for your file because these allow only three characters after the dot in a file name. (Windows 95, 98, and NT allow longer file names (256) and extensions. Window 95+ users should use shorter file names also. Them macintosh can only see 31 characters including the dot plus suffix)
The file name should be no more than 32 characters, including the ".html" or ".htm" file suffix. We recommend that file names follow the convention of eight characters before the suffix even if you are using a Macintosh.
If you are on a DOS or Windows 3.1 PC or think your pages might ever be served from a DOS or Window 3.1 PC, be sure to use a name that has eight or less characters before the dot and three or less characters after the dot. (Windows 95, 98, and NT allow longer file names and extensions.) Examples:
kennedy.html napernhs.htmFile names and folder names should contain only letters, digits, and underscores--no spaces. This is a "conservative" guideline in order to be on the safe side if you move your files from one type of machine to another.