The HTTP-EQUIV attribute in the META tag

Source: Internet
Author: User

Http-equiv, as the name implies, is equivalent to the HTTP file header function, it can send back some useful information to the browser to help correct and accurate display of the content of the Web page, and the corresponding property value of content,content content is actually the variable value of each parameter.

   
X-ua-compatible (ie Proprietary)

The fierce competition in market share of Web browser has brought about the trouble of compatibility design for webpage design developers. There are several mainstream versions of IE browser, IE6, IE7, IE8 and so on. Of course, using third-party integration tools such as IETester, multi-version IE coexistence solutions, can facilitate code debugging. But we always need to find a way to save time and effort.

X-ua-compatible is a special file header tag for the IE version that specifies different page rendering modes for IE. Because the current IE6 and IE7 usage is still high, considering, it is very important to enable the IE version of the X-ua-compatible compatibility mode.

The various compatibility mode code examples are as follows:

It's like using the Quirks mode of Windows Internet Explorer 7, which is similar to how Windows Internet Explorer 5 displays content.

Whether the page contains <! or not The doctype> directive uses the standard rendering mode of Windows Internet Explorer 7.

<http-equiv= "x-ua-compatible"  content= "ie=7"/>

The standard rendering mode for IE8 is turned on, but since the x-ua-compatible file header supports only IE8 or more, it is equivalent to redundant code.

<http-equiv= "x-ua-compatible"  content= "ie=8"/ >

Edge mode notifies Windows Internet Explorer to display content in the highest-level available mode.

This actually destroys the "lock" mode, which is equal to not setting this property.

<http-equiv= "x-ua-compatible"  content= "Edge"/>

EmulateIE7 mode notifies Windows Internet Explorer to use <! The doctype> directive determines how the content is rendered. Standard mode directives are displayed in Windows Internet Explorer 7 Standard mode, while Quirks mode directives are displayed in IE5 mode. Unlike IE7 mode, EmulateIE7 mode follows <! doctype> instructions. For most Web sites, it is the preferred compatibility mode.

<http-equiv= "x-ua-compatible"  content= "Ie=emulateie7"  />
Expires (term)

Description: Can be used to set the expiration time of a Web page. Once the page expires, it must be retransmitted to the server.

     

Note: The time format of GMT must be used.

Pragma (Cache mode)

Note: is used to set the browser from the local computer cache to access the content of the page, once left the page can not be recalled from the cache

     

Note: This setting makes it impossible for visitors to browse offline.

Clear the cache (again visit this site to re-download!) )
<http-equiv= "Cache-control"  content= "No-cache">   
Refresh (refreshed)

Description: Automatically refreshes and points to the new page.

   

Note: 2 of these are meant to be automatically refreshed to URL URLs after 2 seconds of stay.

Set-cookie (Cookie setting)

Note: If the page expires, the cookie will be deleted.

     

Note: The time format of GMT must be used.

Window-target (display window settings)

Description: Forces the page to appear on a separate page in the current window.

     

Note: Used to prevent others from calling their own pages in the frame.

Content-type (Displays the settings of the character set)

Description: Sets the character set used by the page.

     
Pics-label (Web level rating)
<http-equiv= "Pics-label"  contect= "" ">  

Description: There is a content setting in Internet Options for IE that prevents you from browsing some restricted sites, and the limit level for websites is set by the meta attribute.

Page_enter, Page_exit

Set special effects when entering a page

<http-equiv= "Page-enter"    contect= "Revealtrans (duration=1.0 , transtion=12) ">  

Set special effects when leaving the page

<http-equiv= "Page-exit"    contect= "Revealtrans ( duration=1.0,transtion=12) ">    

The value of duration is the time, in seconds, that the page dynamically transitions.
Transition is the transition mode, which has a value of 0 to 23, corresponding to 24 transition modes respectively. As the following table:
0 box-shaped shrinkage

1 box-shaped radiation
2 Round Shrinkage

3 round radiation
4 from bottom to top

5 from top down
6 From left to right

7 from right to left
8 Vertical Blinds

9 Horizontal Blinds
10 Horizontal Lattice Blinds

11 Vertical Lattice Blinds
12 Free Dissolve

13 unfold from left and right sides to center
14 between the left and right sides from the middle

15 unfold from upper and lower ends to middle
16 expand from middle to upper and lower ends

17 from the upper-right corner to the lower-left corner, expand
18 from the lower right corner, expand to the top left corner

19 from the upper-left corner to the lower-right corner, expand
20 from the lower-left corner to the upper-right corner, expand

21 Horizontal linear expansion
22 Vertical Linear expansion

23 randomly produces a transition pattern

Keywords keywords
<http-equiv= "keywords"  content= "Keyword1,keyword2,keyword3"/  >  

For search engines.

Description page description
<http-equiv= "description"  content= "This is my page" />  

For search engines.

The HTTP-EQUIV attribute in the META tag

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.