Example Analysis of HTML5 header meta
This article mainly shows you "HTML5 header meta example analysis", the content is simple and easy to understand, organized clearly, I hope to help you solve doubts, let Xiaobian lead you to study and learn "HTML5 header meta example analysis" this article bar.
< meta…/>Used to define page meta information, that is, specify some name-value pairs. In addition to the id attribute, the element can also specify the following three attributes:
http-equiv: Specifies the name of the meta information. The name specified by this attribute has a special meaning. It can return some useful information to the browser to help the browser process the content of the web page correctly.
name: Specifies the name of the meta information, which can be arbitrarily specified.
content: Specifies the value of the meta information.
Specify valid keywords for web pages to help search engines include this site.
The commonly used values supported by http-equiv attribute are as follows:
Expires: Specifies the expiration time of the page. Once the web page expires, it must be downloaded again on Bear Server.
Pragma: Specifies that browsers are prohibited from retrieving page content from local disk cache, and once the browser leaves the page, it cannot access the page offline. For example:
Refresh: Specifies how long the browser will automatically refresh the specified page. for example
Set-Cookie: Set cookies. If the web page expires, cookies on the client will also be deleted.
meta http-equiv="Set-Cookie" content="name=value expires= Sat Sep 27 16:12:36 CST 2008, path=/" />
5.content-Type: Set the content type of the page and the character set used
The above is "HTML5 header meta sample analysis" all the content of this article, thank you for reading! I believe that everyone has a certain understanding, hope to share the content to help everyone, if you still want to learn more knowledge, welcome to pay attention to the industry information channel!