<meta charset="utf-8" />
这是H5的写法,也可以写成
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="refresh" content="10" />
<meta http-equiv="refresh" content="10; url=http://www.doyoe.com" />
时间单位是s
<meta http-equiv="expires" content="0" />
<meta http-equiv="expires" content="Wed, 26 Feb 1997 08:21:57 GMT" />
一旦网页过期,从服务器上重新请求,其中时间必须使用GMT格式,或者直接是0(即不缓存)
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
content 常用值还有:public, no-cache, no-store等
<meta name="author" content="joy, 240218316@qq.com" />
<meta name="keywords" content="CSS, HTML, JavaScript, 前端" />
多关键字之间以半角逗号分隔
<meta name="description" content="这是一份meta列表,文档描述内容最好是完整的一句话,以不超过50个字符为宜" />
<meta http-equiv="x-ua-compatible" content="IE=Edge" />
客户端的IE将会使用最高的标准模式对页面进行渲染。
<meta name="viewport" content="initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no" />