<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=过渡方式)”>