tailieunhanh - HTML cơ bản - p 25

224 Chapter 5: Building Websites Organization and Navigation Website organization and navigation go hand in hand. A site that is well organized is usually easy to navigate. Pages have names that make sense, and files are organized into directories that logically reflect the website’s topic focus. A poorly organized site, on the other hand, is usually difficult to navigate and harder to maintain. F i le S a n D D i r e C to r i e S Before the introduction of Windows 95, a filename had to be short—no more than eight characters for the name part plus a three-character extension—if you. | 224 Chapter 5 Building Websites Organization and Navigation Website organization and navigation go hand in hand. A site that is well organized is usually easy to navigate. Pages have names that make sense and files are organized into directories that logically reflect the website s topic focus. A poorly organized site on the other hand is usually difficult to navigate and harder to maintain. FILES AND DIRECTORIES Before the introduction of Windows 95 a filename had to be short no more than eight characters for the name part plus a three-character extension if you wanted to work with that file on a Windows or IBM operating system. Programmers were comfortable using shorter filenames. They were faster to type and less prone to errors even if they were more cryptic. Today there is no reason to abbreviate or shorten a filename. Because modern HTML editors and development systems keep track of a website s files you usually have to type in the name only the first time. A filename should be long enough to describe what the file is all about. This will make the robots happier as well as any programmers who will work on the site in the future. On blogs where no physical file for a web page exists the blogging software is often configured to create permalinks for post pages by converting the post s title to all lowercase letters and replacing blanks and special characters with dashes. It would not be surprising to find for example a URL such as this http ten-ways-to-maximize-your-social-media-marketing Macintosh and Windows operating systems handle filenames with spaces and other special characters nicely. Web servers do not do so well with such characters. In URLs such characters must be encoded. Avoid using any character in a filename other than uppercase and lowercase letters digits periods dashes and underscores. Besides using saner and more descriptive filenames here are some other suggestions for keeping a site organized Use all lowercase letters for .