upper or lower case?

  edennorman 09:30 03 Jul 05

I have been told that all the letters in a file name intended for web publication, should be in lower case.
What baout the spaces between the words of a file name? Should you jst leave a space or put a dash or underscore?

Thank you.


  harristweed 10:27 03 Jul 05

It is standard to use lower case for file names, however I don't think it is compusory.

Space are also allowed, but it is good practice to use underscore instead.

The reason is spaces are one of the characters NOT allowed in file names by the browser, so it will insert a code ( %20 ) to represent the space. You may have seen something like:
my%20site%20home%20page.html in the address bar of your browser. Not very pretty.

The reason not to use a dash, is because computers treat a dash as a minus sign, so it can produce unwanted results.
Therefore it is a good habit to avoid spaces and dashes in file names.

  Pesala 10:32 03 Jul 05

I don't think it matters, but some people disagree with me: click here

An underscore is better than a space, which will be converted to %20 in URLs. No spacing at all makes names harder to read and easier to mistype.

  Dorsai 11:28 03 Jul 05

I have noticed that files used on the web are case sensative.

So if the File on the server is Called image.JPG, and you type [img]image.jpg[/img] into your HTML editor, it wont work when you upload the page and image.

I think thats why it's suggested that all file names are lower case. Makes it a bit easier when you type, as you do all file names in lower case.

the Difference between the following two links, is a capital letter.

click here

click here

  Forum Editor 13:42 03 Jul 05

I was taught that Unix servers don't like Upper-case characters in filenames, and that habit has stuck.

Spaces are best filled with an underscore.

Whatever you do, it's good practice to stick to a convention - use the same filenaming protocol for all your files, and your webs will always look neat and work well.

  Sir Radfordin 14:57 03 Jul 05

Is it not that Unix servers are case sensative whereas Windows ones aren't?

It is simplest if you stick to all lowercase and use _ where you would use a space. This is true for most computing "naming" not just for websites.

  Forum Editor 18:03 03 Jul 05

Yes, as I said, they don't like upper-case characters. Windows servers don't care.

This thread is now locked and can not be replied to.

Nintendo Switch (Nintendo NX) release date, price, specs and preview trailer: Codename NX console…

1995-2015: How technology has changed the world in 20 years

8 things designers (and brands) need to know about the modern woman

How to speed up a slow Mac: 19 great tips to make an iMac, MacBook or Mac mini run faster | Speed…