html頁面head地區的編碼書寫規範

來源:互聯網
上載者:User

標籤:

今天我們簡單的介紹一下head地區主要放置了內容。這裡就不強調css和javascript了,這兩者是大家所熟知的。 


head區一般必須加入的標識有:  


公司著作權注釋 
<!--- the site is designed by MrJin 03/2001 --->   

網頁顯示字元集 
簡體中文: 
<meta http-equiv="content-type" content="text/html; charset=gb2312"> 
繁體中文: 
<meta http-equiv="content-type" content="text/html; charset=big5"> 
英 語: 
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1"> 
或者: 
<meta http-equiv="content-type" content="text/html; charset=utf-8"> 

原始製作者資訊 
<meta name="author" content="[email protected]">  

網站簡介 
<meta name="description" content="這裡填您網站的簡介">  

搜尋索引鍵 
<meta name="keywords" content="關鍵字1,關鍵字2,關鍵字3,...">   

網頁的css規範 
<link href="style/style.css" rel="stylesheet" type="text/css">  

網頁標題 
<title>這裡是你的網頁標題</title>  

head區可選加入的標識有:  

設定網頁的到期時間。一旦網頁到期,必須到伺服器上重新調閱。 
<meta http-equiv="expires" content="wed, 26 feb 1997 08:21:57 gmt">  

禁止瀏覽器從本地機的緩衝中調閱頁面內容。 
<meta http-equiv="pragma" content="no-cache">   

用來防止別人在架構裡調用你的頁面。 
<meta http-equiv="window-target" content="_top">  

自動跳轉(5指時間停留5秒)。 
<meta http-equiv="refresh" content="5;url=www.jb51.net"> 

網頁搜尋機器人嚮導.用來告訴搜尋機器人哪些頁面需要索引,哪些頁面不需要索引。 
<meta name="robots" content="none"> 
content的參數有all,none,index,noindex,follow,nofollow。預設是all。  

收藏夾表徵圖 
<link rel = "shortcut icon" href="favicon.ico">  

http://www.jb51.net/article/15404.htm

html頁面head地區的編碼書寫規範

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.