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.

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。