必須加入的標簽
1.公司版權注釋
<!---thesiteisdesignedbymaketown,inc06/2000--->
2.網頁顯示字符集
簡體中文:<metahttp-equiv=content-typecontent=text/html;charset=gb2312>
繁體中文:<metahttp-equiv=content-typecontent=text/html;charset=big5>
英語:<metahttp-equiv=content-typecontent=text/html;charset=iso-8859-1>
3.網頁制作者信息
<metaname=authorcontent=hhlong.com>
4.網站簡介
<metaname=descriptioncontent=xxxxxxxxxxxxxxxxxxxxxxxxxx>
5.搜索關鍵字
<metaname=keywordscontent=xxxx,xxxx,xxx,xxxxx,xxxx,>
6.網頁的css規范
<linkhref=style/style.cssrel=stylesheettype=text/css>
7.網頁標題
<title>xxxxxxxxxxxxxxxxxx</title>
可以選擇加入的標簽
1.設定網頁的到期時間。一旦網頁過期,必須到服務器上重新調閱。
<metahttp-equiv=expirescontent=wed,26feb199708:21:57gmt>
2.禁止瀏覽器從本地機的緩存中調閱頁面內容。
<metahttp-equiv=pragmacontent=no-cache>
3.用來防止別人在框架里調用你的頁面。
<metahttp-equiv=window-targetcontent=_top>
4.自動跳轉。
<metahttp-equiv=refreshcontent=5;url=http://www.hhlong.com>
5指時間停留5秒。
5.網頁搜索機器人向導。用來告訴搜索機器人哪些頁面需要索引,哪些頁面不需要索引。
<metaname=robotscontent=none>
content的參數有all,none,index,noindex,follow,nofollow。默認是all。
6.收藏夾圖標
<linkrel=shortcuticonhref=favicon.ico>
所有的javascript的調用盡量采取外部調用。
<scriptlanguage=javascriptsrc=script/xxxxx.js></script>
附<body>標簽:
<body>標簽不屬于head區,這里強調一下,為了保證瀏覽器的兼容性,必須設置頁面背景<bodybgcolor=#ffffff>