1. <mata>
用于提高网页的相关信息,包括作者,日期等。还可以设置网页的关键字,过期时间。
2. <meta http-equiv=”属性值” content=”具体属性取值 “>
设置网页浏览器和服务器之间的请求方式
http-equiv: content-type 设置网页的编码
expires 设置网页的有效期限
keyword 设置网页的关键字
refresh 设置自动刷新网页与自动跳转网页
cache-control 设置禁用缓存
3. <meta http-equiv=”content-type” content=” 文档类型;charset=编码类型”>
可以设置文档的类型以及浏览器使用的编码类型文档类型:一般使用text/html参数表示网页为html文件
如:
4. <meta http-equiv=”expirse” content=”有效期限”>
有效期限:即网页的到期时间,格式为[星期,日,月,年,时,分,秒,GMT]如:
<meta http-equiv="expirse" content="Mon, 16 Jan 2016 15:30:50 GMT">