What are the HTML meta-information tags?
The head tag itself does not carry any information. It is mainly used as a container for various meta-information tags and semantic tags. It is stipulated that the head tag is the first element of the html tag, and the header must contain the title.
Literally, title stands for title, but the meaning of the title tag is a little different from this. It represents the accurate summary information of the page and will be displayed in the browser window as the page title. In addition, a reasonable title tag is also good for SEO.
For example, get a web version:
From the meaning of meta, we know that it represents meta information. Meta tags are a set of key-value pairs. Generally, name and content are used to represent keys and values respectively, and multiple meta tags can appear in the header. The basic usage is as follows:
The label above indicates that the Web application where the page is located is called StackOverflow.
Starting from HTML5, in order to simplify the writing, a charset attribute is added to the meta tag. Meta tags with charset attribute do not need a name and content.
In order to keep the data format correct, it is recommended to use charset as the first tag of the header.
Literally, HTTP-equiv is the equivalent of HTTP, which means to execute an instruction related to the http header. Naturally, the name attribute is no longer needed. For example:
Although the HTML standard does not define the viewport meta-information tag, it has become the de facto standard for mobile Web development. It mainly represents the properties of the viewport, such as size, zoom range and so on.
All attributes include:
The meta-information tag is used to describe the information of the document itself and must be placed in the head tag, which is the first tag in the html tag. Meta-information tags mainly consist of titles and meta-tags. Meta tags are composed of key-value pairs with name as the key and content as the value, mainly including: