tutorial 3: organizing your website
watch it on YouTube
Notes
- Organize resource files by type--images, css, js, etc.
- Organize HTML files to reflect the structure of the content
- Naming conventions for files and folders:
- Use appropriate 3 or 4 character extensions--.html, .css, .jpg, etc.
- Use all lower-case letters; numbers are ok
- Do not use special characters (like &, %, $) except for _ or -
- Do not use spaces: _ is typically used for a space
- Use short, descriptive names
- Use a systematic naming convention for similar files
- The main folder of a site is the root level
- Calculating referential links
- use / to go "down" a level (into a subfolder)
- use ../ to go "up" a level
- be sure to use the exact name of the file + extension to
target the file with your pointer.
Definitions: Types of Links
- External links
-
links to content outside of your website. They typically start with http:// or
https://
- Referential links
- links to content within your website. Using referential links in your website is best practice
- Bookmarks
- links from one part of a webpage to another part of that same page