Meta http-equiv= ' Refresh ' interpretation

Source: Internet
Author: User

The page is refreshed periodically, and if the URL is added, it is redirected to the specified Web page, followed by the time (in seconds) of the content.

To add this sentence to the

Need to refresh regularly such as news pages, forums, etc., but generally do not use this, all with new technology such as Ajax




Detailed Explanation:

Http-equiv, as the name implies, corresponds to the file header of HTTP, which can send back useful information to the browser to help correct and accurately display the content of the Web page.
The corresponding property value for Content,content is actually the variable value of each parameter.
The Http-equiv property syntax format for referencing the meat tag is: <meta http-equiv= "parameter" content= "parameter variable value", where the Http-equiv attribute mainly has the following parameters:
1, Expires (term) Description: Can be used to set the expiration time of the page. Once the page expires, it must be retransmitted to the server. Usage:
HTML code
    1. http-equiv="Expires" content="Wed, June 22:33:00 GMT" >
   

2. Pragma (cache mode) Note: is used to set the browser from the local computer cache to access the content of the page, once set to leave the Web page can not be recalled from the cache usage:
HTML code
    1. http-equiv="Pragma" content="No-cache" >
   

3, Refresh (refreshed) Description: Automatically refreshes and points to the new page. usage:
HTML code
    1. http-equiv="Refresh" content="2;url=http://www.net.cn/" >
   
4, Set-cookie (cookie setting) Description: If the page expires, then the cookie will be deleted. Usage:
HTML code
    1. http-equiv="Set-cookie" content="Cookievalue=xxx;expires=wednesday, 20-jun-2007 22:33:00 GMT; path=/">
   

5, Window-target (display window settings) Description: Forces the page to appear on a separate page in the current window. usage:
HTML code
    1. http-equiv="Window-target" content="_top" >
   

6, Content-type (display character set settings) Description: Sets the character set used by the page. usage:
HTML code
    1. http-equiv="Content-type" content= "text/html; charset=gb2312 ">
   
7, Pics-label (page rating) usage:
HTML code
    1. <Meta http-equiv= "pics-label" contect= "">
<meta http-equiv= "Pics-label" contect= "" >

8, Page_enter, Page_exit Set special effects when entering a page
HTML code
    1. <Meta http-equiv="Page-enter" contect="Revealtrans (duration=1.0,transtion=)">
<meta http-equiv= "Page-enter"    contect= "Revealtrans (duration=1.0,transtion=    )" >  
Set special effects when leaving the page
HTML code
    1. <Meta http-equiv="Page-exit" contect="Revealtrans (duration=1.0,transtion=)">
<meta http-equiv= "Page-exit"    contect= "Revealtrans (duration=1.0,transtion=    )" >  
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 contraction 1 box-shaped radiation
2 round contraction 3 round emission
4 from bottom to top 5 up down
6 from left to right 7 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 to Middle 14 from center to left
15 expand from upper and lower ends to middle 16 expand from center to upper and lower ends
17 from the upper right-hand corner to the lower-left corner expand 18 from the lower-right corner to the upper-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
21 Horizontal linear Expansion 22 vertical linear expansion
23 randomly produces a transition pattern
9, clear the cache (re-visit this site to re-download!) )
HTML code
    1. <Meta http-equiv= "cache-control" content="No-cache">
<meta http-equiv= "Cache-control" content= "No-cache" >
10, set the expiration time of the webpage
HTML code
    1. <Meta http-equiv= "expires" content="0">
<meta http-equiv= "Expires" content= "0" >
11, keywords, for the search engine
HTML code
    1. <Meta http-equiv= "keywords" content="Keyword1,keyword2,keyword3">
<meta http-equiv= "keywords" content= "keyword1,keyword2,keyword3" >
12. Page description
HTML code
    1. <Meta http-equiv="description" content= "This is my page">

Meta http-equiv= ' Refresh ' interpretation

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.