After mastering the website or webpage software Website production It's easy, but both beginners and web page producers with some experience in web page editing have some things to pay attention to, such as: some pages are beautiful but not practical, some pages are too slow to browse, and some website maintenance is a headache. Here are the precautions for making web pages.
(1) It is recommended that the file name should be lowercase. Because the operating system of most servers on the Internet is a Unix class, this type of operating system is very case sensitive, that is, the server will think that Index.htm and index.htm are two different files, which will cause errors and wrong links in the process of calling the home page file. This is different from DOS or DOS compatible environments.
(2) It is better to have an index file for each page. The name of the homepage file must be index, which is the address of the default website homepage. The suffix can be htm, html, shtml, xml or asp for the browser to identify; There should also be index files under each corresponding subdirectory, so that the viewer can not only browse for a single subdirectory, but also do not have to enter through the link on the home page every time. This saves users a lot of time.
(3) Good at creating subdirectories. The structure of a website is often complex, especially most websites in China are generally "all inclusive", with many and miscellaneous contents. If you are not good at creating subdirectories, you will often encounter the following problems: 1) In the later maintenance of the website, once the homepage is completely revised, the amount of modification is considerable. 2) When the picture in the website changes. If it is not deleted in time, it will greatly waste the storage space of the home page. 3) In the process of uploading, the producers may feel a headache if they don't know which files should be uploaded and which files don't need to be uploaded. Even if Dreamweaver, FrontPage and other intelligent software are used, it will not help. Therefore, it is important to be good at creating subdirectories, especially for some large websites. The following points should be noted when creating subdirectories.
① The name of the subdirectory should be meaningful. For example, the corresponding Chinese meaning of economy is "economy". Economic related pages can be stored in this subdirectory, and so on. Therefore, when maintaining the home page of the entire website, different types of files are updated in different directories. Whether adding information to the page or completely changing the page, it is quite intuitive and convenient. ② Pay attention to the structure of the website. Generally speaking, websites and web pages are viewed in a tree structure, so the structure of a website should also be a tree structure. That is to say, the directories should be arranged according to the browsing level, and they should not be scattered, so that they can be easily browsed and maintained. Of course, the advantages of creating subdirectories for personal websites or small sites may not be obvious sometimes, but for large websites such as NetEase, Yahoo, Sougu, etc., it is not enough to create dozens or hundreds of subdirectories.
(4) Use less music files. The emergence of multimedia not only affects the entire IT industry, but also plays an important role in the Internet. Like bitmap files, music files are also very large. A 650 MB disc can only hold 74 minutes of CD music. It is conceivable that if such music files are quoted in websites, the download speed is quite slow. Among personal websites, there are quite a few websites that use background music. Some music lovers even change different songs when switching pages. Therefore, for music files, the author has the following suggestions: 1) Music files should be used less, which can improve the download and browsing speed of the web page. 2) If music is used when making web pages, try to use small music files, such as midi music. Although the sound quality is average, it is fast and can be favored by most netizens. 3) It is recommended to place the hypertext statement calling the music file at the bottom of the entire page, and let the browser download the file last.
(5) Reasonably arrange graphic files. Since the images appear in the home page file, almost no website's home page content does not involve images, whether personal or commercial websites. At the current network speed, it is very important to let visitors quickly download and browse web pages. 1) Use as few pictures as possible. 2) Apply smaller pictures. 3) Do not apply counters, especially when borrowing services provided by others' servers. 4) When typesetting image files, limit the space they occupy.
(6) Avoid applying dynamic technologies. In the current homepage, websites without dynamic technology may not exist.
(7) The color matching of the page should be reasonable. Browsing some large commercial websites, they are elegant, warm and lively, giving people a feeling of special comfort, which is related to the reasonable matching of colors. But for those who are experienced in matching background color and text color, different background colors can also be matched with different title background colors, and text with different colors will produce different effects. On this basis, users can use their imagination to match more novel colors.
When making personal web pages, the choice of page colors is unlimited, depending on personal aesthetics and preferences. But the color of the general home page, especially in Website production The home page should not have too many colors, at most no more than 3. Otherwise, it will give people a feeling of being too flashy, light and not serious.