I'd like to share something we learned last week in our "Say Hello to HTML" class taught by the web wizard himself, John Romano. Naming HTML files appropriately is just a little something that can help out in a big way. So when you're naming your files and your folders, remember these key things.
- No spaces, punctuation or special characters.
- No periods. This helps prevent broken links.
- No underscores, use hyphens instead. Google will identify separate keywords between hyphens.
- Use all lower case, people are less likely to make typos.
- No fancy naming conventions, use direct labels that reflect the content. This will help everyone identify a file's content before even opening it. Also, Google likes having a file name that is related to the content.
- Remember: save your files as close to the root directory/index as is feasible. The farther away your files live, the less visibility they get.
If you do all of this, not only are you making our developer's lives a little easier, you'll get a little Google love to boot.