head區(qū)是指首頁html代碼的<head>和</head>之間的內容。
必須加入的標簽
1.公司版權注釋
<!---thesiteisdesignedbywebjx.com06/2006--->
2.網(wǎng)頁顯示字符集
簡體中文:<metahttp-equiv="content-type"content="text/html;charset=gb2312">
繁體中文:<metahttp-equiv="content-type"content="text/html;charset=big5">
英語:<metahttp-equiv="content-type"content="text/html;charset=iso-8859-1">
3.網(wǎng)頁制作者信息
<metaname="author"content="evance">
4.網(wǎng)站簡介
<metaname="description"content="xxxxxxxxxxxxxxxxxxxxxxxxxx">
5.搜索關鍵字
<metaname="keywords"content="xxxx,xxxx,xxx,xxxxx,xxxx,">
6.網(wǎng)頁的css規(guī)范
<linkhref="style/style.css"rel="stylesheet"type="text/css">
7.網(wǎng)頁標題
<title>xxxxxxxxxxxxxxxxxx</title>
.可以選擇加入的標簽
1.設定網(wǎng)頁的到期時間。一旦網(wǎng)頁過期,必須到服務器上重新調閱。
<metahttp-equiv="expires"content="wed,26feb200608:21:57gmt">
2.禁止瀏覽器從本地機的緩存中調閱頁面內容。
<metahttp-equiv="pragma"content="no-cache">
3.用來防止別人在框架里調用你的頁面。
<metahttp-equiv="window-target"content="_top">
4.自動跳轉。
<metahttp-equiv="refresh"content="5;url=http://www.webjx.com">5指時間停留5秒。
5.網(wǎng)頁搜索機器人向導.用來告訴搜索機器人哪些頁面需要索引,哪些頁面不需要索引。
<metaname="robots"content="none">
content的參數(shù)有all,none,index,noindex,follow,nofollow。默認是all。
6.收藏夾圖標
<linkrel="shortcuticon"href="favicon.ico">
所有的javascript的調用盡量采取外部調用.
<scriptlanguage="javascript"src="script/xxxxx.js"></script>
附<body>標簽:
<body>標簽不屬于head區(qū),這里強調一下,為了保證瀏覽器的兼容性,必須設置頁面背景<bodybgcolor="#ffffff">