Difference between revisions of "Web page conventions (MGDP2060)"
From Wiki @ Karl Jones dot com
Karl Jones (Talk | contribs) (→Naming conventions) |
Karl Jones (Talk | contribs) (→File naming restrictions) |
||
| Line 27: | Line 27: | ||
* Numbers | * Numbers | ||
| − | * Hyphen | + | * Hyphen <code>-</code> |
* Underscore <code>_</code> | * Underscore <code>_</code> | ||
Note that the neither the hyphen nor the underscore is a "dash". There is no "dash" key on a standard keyboard. | Note that the neither the hyphen nor the underscore is a "dash". There is no "dash" key on a standard keyboard. | ||
Revision as of 17:56, 12 September 2015
Student web pages should follow these conventions:
File organization
All of your web page files go in a folder known as the local root folder (or similar names).
- Local because it's on your local computer (as opposed to Remote -- the web server)
- Root because it contains your Home page, along with sub-folders
Naming conventions
- File and folder names as specified in exercises
- Where not specified, your choice of file and folder names -- but see file naming restrictions below
File naming restrictions
Names of files and folders:
- Must begin with a letter
- Must be letters which have keys on a standard keyboard
- Must not contain space characters
- Must not contain any of the following characters (unless you can justify why you need it):
~ @ # $ % ^ & * ( ) { } [ ] | \ / ? < > , : ;
Acceptable (other than first character in name):
- Numbers
- Hyphen
- - Underscore
_
Note that the neither the hyphen nor the underscore is a "dash". There is no "dash" key on a standard keyboard.