1.盡量滿足W3C認證;(系統可自行檢測)
1. Try to meet W3C certification( The system can detect by itself)
2.CSS使用外部調用
2. CSS uses external call
3.盡量減少http請求次數:合并JS/CSS、
3. Minimize the number of HTTP requests: merge JS / CSS
4.取消重定向、使用css sprite、緩存靜態資源;
4. Cancel redirection, use CSS sprite and cache static resources;
5.壓縮頁面元素(CSS、JS、圖片等),使用Gzip壓縮網頁,以加快下載速度;
5. Compress the page elements (CSS, JS, pictures, etc.) and use gzip to compress the web page to speed up the download speed;
6.減少網頁代碼量,清除網頁中一些冗余的代碼,可以合并代碼,必要時可以去掉空格注釋等,減小頁面體積

6. Reduce the amount of web page code, clear some redundant code in the web page, merge the code, and remove the space comments when necessary, so as to reduce the size of the page
7.CSS放內,JS放頁面后(異步除外);除了影響加載的效果文件,合并JS,減少請求
7. CSS is placed inside, JS is placed at the end of the page (except asynchronous); In addition to affect the effect of loading files, merge JS, reduce requests
8.盡量少用第三方庫,或使用穩定的三方庫。
8. Minimize the use of third-party libraries, or use stable third-party libraries.
9.確保所有的標簽都使用小寫字母
9. Make sure all labels are in lowercase
10.確保所有的屬性值都放在引號里
10. Make sure all attribute values are in quotation marks
11.所有成對標簽都保證合理的順序、不成對的標簽都用/>結束, ”/”和”>”之間不要有空格
11. All paired tags should be in a reasonable order, unpaired tags should end with / > and there should be no space between / "and" > "
12.為頁面添加正確的DOCTYPE
12. Add the correct DOCTYPE to the page
13.所有屬性值加引號
13. All attribute values are quoted
14.閉合所有的標簽
14. Close all labels
15.盡量減少嵌套,嵌套時標簽必須一一對應
15. Try to reduce nesting, labels must be one-to-one corresponding when nesting
16.清除空格、換行。盡量不用的大段注釋
16. Clear the space and wrap. Try not to use large comments
Jinan website construction company sincerely provides excellent services for our customers. Welcome to our website: http://www.qanho.com Below message consultation