首頁head區(qū)代碼規(guī)范
來源:易賢網 閱讀:1214 次 日期:2016-06-17 10:09:15
溫馨提示:易賢網小編為您整理了“首頁head區(qū)代碼規(guī)范”,方便廣大網友查閱!

必須加入的標簽

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規(guī)范

<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區(qū),這里強調一下,為了保證瀏覽器的兼容性,必須設置頁面背景<bodybgcolor=#ffffff>

更多信息請查看網頁制作
易賢網手機網站地址:首頁head區(qū)代碼規(guī)范
關于我們 | 聯(lián)系我們 | 人才招聘 | 網站聲明 | 網站幫助 | 非正式的簡要咨詢 | 簡要咨詢須知 | 新媒體/短視頻平臺 | 手機站點

版權所有:易賢網