Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
As you create files for the Web understanding the rules governing their naming is vitally important. If your files aren't named correctly, certain pages might become inaccessible or just not work properly. Remember that webpages contain links to other webpages and assets. If file naming isn't handled correctly, your site's functionality can really suffer. Fortunately, the rules for Web file naming conventions are pretty easy to follow. First, don't use any spaces in your file names. If you have a file that's longer than one word, use an underscore or a hyphen to separate the words.
Most Web servers will allow file name as spaces, but when the link is resolved, the special character, %20 is used in place of that space. So if you've ever seen that in the URL, now you know what that's referring to. Now, this is really messy and can lead to a lot of confusion when sending links or displaying URLs. Second, shorten the file names when you can. Rather than using something like about_us.htm, how about just about.htm? Shorter names are easier to remember and make URLs easier for clients to type.
Next, avoid using special characters, no dollar signs, exclamation points, forward or backslashes, question marks, periods, really any other special character or punctuation. Now, many of those symbols are actually used to denote things like directory structure, URL parameters, or other meanings that you could unwittingly trigger if you use them. Numbers are okay to use in file names, just avoid using them as the first character. Also, avoid uppercase letters if possible. Most Web servers won't care, but some UNIX servers are case-sensitive and links could not be resolved correctly even if they're spelled correctly by your users, so you want to be very careful about that.
When using extensions, just be consistent. Honestly, one of the biggest questions I get from users is, should I use .htm or.html? Well, for non-dynamic websites, it's okay to use either one. Now, to avoid having to worry about it, you can set up a default document extension in Dreamweaver's Preferences and Dreamweaver will resolve that extension for you when you save the file.
Get unlimited access to all courses for just $25/month.Become a member
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.