HTTP-EQUIV corresponds to the role of the HTTP file header, which can send back some useful information to the browser to help correct and accurately display the content of the Web page, the corresponding property value of Content,content is actually the variable value of each parameter.
The Http-equiv property syntax format for the meat tag is:
<meta http-equiv=" parameter " content=" parameter Variable value ">
Among them, the Http-equiv property mainly has the following kinds of parameters:
1. 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.
Usage:
<meta http-equiv="expires" content="Wed, June 22:33:00 GMT ">
Note: The time format of GMT must be used.
2. Pragma (cache mode):
Note: is used to set the browser from the local computer cache to access the content of the page, after the settings once left the page can not be recalled from the cache.
Usage:
<meta http-equiv="Pragma" content="no-cache " >
Note: This setting makes it impossible for visitors to browse offline.
3. Refresh:
Description: Automatically refreshes and points to the new page.
Usage:
<meta http-equiv="Refresh" content="2; url=http://www.net.cn/">
Note: 2 of these are meant to be automatically refreshed to URL URLs after 2 seconds of stay.
4. Set-cookie(Cookie setting):
Note: If the page expires, the cookie will be deleted.
Usage:
<meta http-equiv="set-cookie" content="cookievalue=xxx;expires =wednesday, 20-jun-2007 22:33:00 gmt;path=/">
Note: The time format of GMT must be used.
5. window-target (display window settings):
Description: Forces the page to appear on a separate page in the current window.
Usage:
<meta http-equiv="window-target" content="_top">
Note: Used to prevent others from calling their own pages in the frame.
6. Content-type ( display character set settings ):
Description: Sets the character set used by the page.
Usage:
<meta http-equiv="content-type" content="text/html; Charset=utf-8">
7. Pics-label (Web level rating):
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.
Usage:
<meta http-equiv="pics-label " content= "">
8. Page_enter, Page_exit:
Description: Sets a special effect when entering the page.
Usage:
<meta http-equiv="page-enter" content="Revealtrans (duration=1.0, transtion=12)">
Description: Sets a special effect when leaving the page.
Usage:
<meta http-equiv="page-exit" content="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 |
Circular 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 |
Dissolve freely |
13 |
Unfold from left and right sides to middle |
14 |
Expand from middle to left and right sides |
15 |
Expand from upper and lower ends to middle |
16 |
Expand from middle to upper and lower ends |
17 |
From the upper right corner, expand to the left corner |
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 |
Expand from lower-left corner to upper-right corner |
21st |
Horizontal linear expansion |
22 |
Vertical linear expansion |
23 |
Randomly produces a transition pattern |
Meta http-equiv attribute details (GO)