【转】Html页面结构范例

原文地址:http://www.51testing.com/html/38/225738-220986.html

· HTML

    · HEAD

        · LINK ...        

    CSS files required for page appearance. Minimize the number of files for performance while keeping unrelated CSS in separate files for maintenance.

        · SCRIPT. ...        

    JavaScript files for functions required during the loading of the page, but not any DHTML that can only run after page loads.        

    Minimize the number of files for performance while keeping unrelated JavaScript. in separate files for maintenance.

    · BODY    

· User visible page content in small chunks (tables / divs) that can be displayed without waiting for the full page to download.

        · SCRIPT. ...        

      Any scripts which will be used to perform. DHTML. DHTML script. typically can only run after the page has completely loaded and all necessary objects have been initialized. There is no need to load these scripts before the page content. That only slows down the initial appearance of the page load.

      Minimize the number of files for performance while keeping unrelated JavaScript. in separate files for maintenance.

      If any images are used for rollover effects, you should preload them here after the page content has downloaded.

原文地址:https://www.cnblogs.com/wangwangfei/p/4478700.html