Meta tag_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:47:54
Original
1360 people have browsed it

Definition and usage

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.

Differences between HTML 4.01 and HTML 5

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">
Copy after login

In HTML 5, this is enough:

<meta charset="ISO-8859-1">
Copy after login

Tips and Comments

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?

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template