html的mate標記

Meta 標記的語法可分爲兩大類:

<meta name="name" content="content">

<meta http-equiv="" content="content">

 

<!DOCTYPE html>

<html lang="zh-cn">

<head>

<meta charset="UTF-8">

<meta name="name" content="content">

<meta http-equiv="" content="content">

<title>meta中繼標記</title>

</head>

<body>

</body>

</html>

 

http-equiv屬性:

1.content-type 是設置網頁文件的格式,

<meta http-equiv="content-type" content="text/html; charset=zh-cn">

 

2.refresh 是讓網頁重新整理

<meta http-equiv="refresh" content="10; url=http://www.baidu.com">

10秒後轉到百度

 

3.expires 是設置網頁到期時間

 

4.pragma 是設置cache 的模式

 

5.set-cookie 是設置cookie到期的時間

 

6.windows-target 是限制網頁顯示目標窗口

<meta http-equiv="windows-target" content="_top">

 

name屬性:

1.keywords是用來設置網頁的關鍵詞

 

2.Description是用業說明網頁的主要內容

 

 

3.Autor 是用來說明網頁的作者

 

 

4.Creation-date 是用來標註網頁的製作時間

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章