Up until now, you've probably not had to think about how you named your files. When working on the web, different types of computers must work together. This means that certain conventions must be followed.
All files (even on a Mac) have a file extension suffix. Make sure when you save you file, that you are using the correct suffix.
.html
.css
.jpg
, .png
, or .gif
, depending on what type of file it is..js
On a Mac or PC you can save a file called "my awesome website.html
". This will not work on a website.
Use hyphens in your filenames instead to indicate spaces. Your filename would be "my-awesome-website.html
" instead.
Characters such as ?
, %
,#
, /
, :
, ;
, •
, etc. all either have a special meaning in a web url or are invalid. Because of this, they should not be used in filenames.
Only use letters, numbers, underscores, hyphens.
Periods should only be used in the file extension.
Assume that your filenames are always case-sensitive.
Uppercase letters and lowercase letters are different.
To avoid confusion, it is standard practice to always use lowercase letters.
Try not to make your files names really long. That being said, there is no need to make them so short that they are cryptic.
For example, a page about you and what you are doing right now:
about-me-and-what-im-doing-right-now.html
a.html
about.html