Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Example Analysis of HTML5 header meta

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report