1.定义

2.常见的元信息

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!-- 配置字符编码 -->
<header>
<meta charset="UTF-8">
<!-- 针对IE浏览器的一个兼容性设置 -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- 针对于移动端的配置 -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- 配置网页的关键字 -->
<meta name="keywords" content="新闻,视讯">
<!-- 配置网页描述信息 -->
<meta name="description" content="全世界一流新闻网站">
<!-- 针对搜索引擎爬虫配置 -->
<meta name="robots" content="index">
<!-- 配置网页作者 -->
<meta name="author" content="JoJo">
<!-- 配置网页生成工具 -->
<meta name="generator" content="WebStorm">
<!--配置网页版权信息 -->
<meta name="copyright" content="2024-2029©️版权所有">
<!-- 配置网页自动刷新 -->
<meta http-equiv="refresh" content="10;url=http://www.baidu.com">
</header>

详情请见[https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/meta]