<meta>元素位於<head></head>之間,常有以下用法:
用來標記搜索引擎在搜索你的頁面時所取出的關鍵詞
<metaname=“keywords” content=“具體的關鍵字">
用來標記文檔的作者
<metaname=“author” content=“作者的姓名">
用來標記你的頁面的解碼方式
<metahttp-equiv=“Content-Type” content=“text/html;charset=gb2312”>
用來描述頁面是爲了便於搜索引擎的查找
<metaname=“description” content=“對頁面的描述語言”>
用來設置編輯工具
<metaname=“generator” content=“編輯軟件的名稱">
用來限制搜索方式
<metaname=“roborts”content=“搜索方式">
用來設置網頁的定時跳轉
<metahttp-equiv=“refresh” content=“跳轉時間;url=鏈接地址”>
用來設定有效期限,一旦過期則必須到服務器上重新調用。
<metahttp-equiv=“expires” content=“到期的時間”>
用來禁止從緩存中調用
<metahttp-equiv =“cache-control"content=“no-cache">
<metahttp-equiv =“pragma" content=“no-cache">
用來刪除過期的cookie
<metahttp-equiv =“set-cookie” content=“到期的時間">
用來強制打開新窗口
<metahttp-equiv=“window-target” content=“_top”>
用來設置網頁的過渡效果
<metahttp-equiv=“過渡事件”content=“revealtrans(duration=過渡效果持續時間,transition=過渡方式)”>