The meta element provides meta-information about the page, such as descriptions and keywords for search engines and update frequency.
The meta tag is located at the head of the document and does not contain any content. The attributes of the meta tag define the name/value pairs associated with the document.
In HTML 5, the scheme attribute is no longer supported.
In HTML 5, there is a new charset attribute that makes character set definition easier.
In HTML 4.01, you had to write:
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
In HTML 5, this is enough:
<meta charset="ISO-8859-1">
Tip: Please use CSS to define the type of the list.
charset | character encoding | 定义文档的字符编码。(html5新属性) |
content | some_text | 定义与 http-equiv 或 name 属性相关的元信息。 |
http-equiv | content-type,expires,refreshset-cookie | 把 content 属性关联到 HTTP 头部。 |
name | author,description,keywords,generator,revised,others | 把 content 属性关联到一个名称。 |
scheme | some_text | 定义用于翻译 content 属性值的格式。html5不支持。 |
Related links:
Common meta organization
Commonly used HTML head tags
HTML head tag
Front-end specifications, HTML What is the order of meta, title and other tags within the tag?