About Us Services Blog Contact Us Learn

Naming Conventions

Naming Conventions

It is important that you follow these rules and conventions when naming your files:

Use proper suffixes for your files. (X)HTML files must end with .html (some servers allow .htm).
Web graphics must be labeled according to their file format: .gif or .jpg (.jpeg is also acceptable).
Never use character spaces within filenames. It is common to use an underline character or dash to visually separate words within filenames, such as robbins_bio. html or robbins-bio.html.

Avoid special characters such as ?, %, #, /, :, ;, •, etc. Limit filenames to letters, numbers, underscores, hyphens, and periods.
Filenames may be case-sensitive, depending on your server configuration. Consistently using all lowercase letters in filenames, while not necessary, makes your filenames easier to manage.
Keep filenames short. Short names keep the character count and file size of your (X)HTML file in check. If you really must give the file a long, multiword name, you can separate words with capital letters, such as ALongDocumentTitle.html, or with underscores, such as a_long_document_title.html, to improve readability.
Self-imposed conventions. It is helpful to develop a consistent naming scheme for huge sites. For instance, always using lowercase with underscores between words. This takes some of the guesswork out of remembering what you named a file when you go to

Recent Posts

1 comment:

Anonymous said...

Thanks for posting this. i really enjoyed reading this.

Website Special