[Summary] meta http-equiv

Source: Internet
Author: User
Tags generator generator

The HTTP-EQUIV is similar to the HTTP header protocol, which responds to some useful information for the browser to help display the web content correctly and precisely. Commonly used HTTP-EQUIV types are:

1. Content-Type and content-language (display character set setting)

Note: Set the character set used on the page to indicate that the text used for homepage production is already in language. the browser will call the corresponding character set to display the page content.

Usage: <meta http-equiv = "Content-Type" content = "text/html; charset = gb2312">

<Meta http-equiv = "content-language" content = "ZH-CN">

Note: This meta tag defines the character set gb2132 used on the HTML page, which is the Chinese character code of the national standard. If you replace "charset = gb2312" with "big5", the character set used on this page is the big5 code of Traditional Chinese. When you browse some overseas sites, the IE browser will prompt you to download XX language support to display the page correctly. The function is to read the Content-Type attribute of the meta tag on the HTML page and find out which character set is used to display the page. If the corresponding character set is not installed in the system, ie will prompt to download. Other languages also correspond to different charsets, such as the Japanese character set is "iso-2022-jp", Korean is "ks_c_5601 ".

The content of Content-Type can also be text, XML, and other document types;

Charset options: ISO-8859-1, big5, UTF-8, shift-JIS, EUC, Koi8-2, US-ASCII, X-Mac-Roman, iso-8859-2, X-Mac-ce, iso-2022-jp, x-sjis, X-EUC-JP, EUC-KR, iso-2022-kr, gb2312, gb_2312-80, X-EUC-TW, x-cns11643-1, x-cns11643-2 and other character sets; the content of content-language can also be: En, FR, and other languages.Code.

2. Refresh)

Note: The time (in seconds) for a webpage to refresh itself, or the time after which the webpage is automatically linked to another webpage.

Usage: <meta http-equiv = "refresh" content = "30">

<Meta http-equiv = "refresh" content = "5; url = http://www.downme.com">

Note: 5 indicates that the URL is automatically refreshed after 5 seconds.

3. expires (TERM)

Description: it specifies the expiration time of the webpage in the cache. Once the webpage expires, it must be re-accessed on the server.

Usage: <meta http-equiv = "expires" content = "0">

<Meta http-equiv = "expires" content = "wed, 26 Feb 1997 08:21:57 GMT">

Note: The GMT time format must be used, or the value is set to 0 (the number indicates the time after expiration ).

4. Pragma (cach Mode)

Note: The browser is prohibited from reading the page content from the cache of the local machine.

Usage: <meta http-equiv = "Pragma" content = "no-cach">

Note: The webpage is not saved in the cache, and the page is refreshed every time the webpage is accessed. In this way, visitors will not be able to browse offline.

5. Set-cookie (cookie setting)

Note: When a browser accesses a page, the page will be cached and can be read from the cache next time. When you want a visitor to refresh the icon of your advertisement every time, or refresh your counter every time, the cache will be disabled. Generally, you do not need to disable caching for HTML files. For pages such as ASP, you can disable caching, because every time you see a page that is dynamically generated on the server, slow storage will lose its meaning. If the webpage expires, the cookie on the disk will be deleted.

Usage: <meta http-equiv = "Set-cookie" content = "cookievalue = xxx; expires = Wednesday,

16:14:21 GMT; Path =/">

6. Window-target (display window settings)

Note: The Force page is displayed on an independent page in the current window.

Usage: <meta http-equiv = "widow-target" content = "_ top">

Note: This attribute is used to prevent others from calling your page in the framework. Content options: _ blank, _ top, _ self, and _ parent.

7. PICs-label (webpage RSAC rating)

Note: There is a content setting in Internet Options of IE to prevent restricted websites from being browsed.

Do not set this parameter.

Usage: <meta http-equiv = "pics-label" contect =

PICS-1.1 'http://www.rsac.org/ratingsv01.html'

I Gen Comment 'rsaci North America sever 'By 'inet @ Microsoft.com'

For 'http: // www.microsoft.com 'on '2017. 06.30t14: 21-0500' R (N0 S0 V0 l0) ">

Note: Do not set the level too high. The RSAC evaluation system provides a standard for evaluating web site content. You can set Microsoft Internet Explorer (ie3.0 or later) to exclude sites that contain pornographic and violent content. In the preceding example, HTML is taken from the Microsoft homepage. In the Code (N 0 s 0 V 0 l 0), this site does not contain unhealthy content. The level is determined by RSAC, the US entertainment Commission's rating agency. If you want to learn more about the level of the RSAC evaluation system, or you need to evaluate your website, the site that can access RSAC: http://www.rsac.org /.

8. Page-enter and page-exit (Entry and Exit)

Note: This is a special effect for page loading and calling.

Usage: <meta http-equiv = "Page-Enter" content = "blendtrans (duration = 0.5)">

<Meta http-equiv = "Page-Exit" content = "blendtrans (duration = 0.5)">

Note: blendtrans is a type of dynamic filter that produces a fade effect. Another dynamic filter, revealtrans, can also be used for page entry and exit effects:

<Meta http-equiv = "page-Enter" content = "revealtrans (duration = x, transition = y)">

<Meta http-equiv = "Page-Exit" content = "revealtrans (duration = x, transition = y)">

Duration indicates the duration of the filter effect (unit: seconds)

Transition filter type. Which special effect is used? The value ranges from 0 to 23.

0 rectangular zoom 1 rectangular zoom 2 circular zoom 3 circular zoom 4 down to top refresh 5 up to bottom refresh 6 left to right refresh 7 Right to left refresh 8 vertical blinds 9 horizontal blinds 10 misplaced horizontal blinds 11 dislocation vertical blinds spread around 13 to center refresh 14 center to left and right refresh 15 center to up and down 16 up and down to center 17 right down to top 18 right to bottom 19 left to bottom right 20 left bottom to top right 21 horizontal bars 22 vertical bars 23 or more 22 random selection

9. msthemecompatible (XP topic)

Determines whether to disable the XP topic in IE.

Usage: <meta http-equiv = "msthemecompatible" content = "yes">

Note: Turn off the XP blue stereo button system display style, which is very similar to Win2k.

10. IE6 (page builder)

Note: The Page Generator generator is IE6.

Usage: <meta http-equiv = "IE6" content = "generator">

Note: It is made of something similar to a factory manufacturer.

11. Content-script-type (script-related)

Note: This is the W3C specification recently, specifying the script type on the page.

Usage: <meta http-equiv = "content-script-type" content = "text/JavaScript">

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.