Meta http-equiv attribute, metahttp-equiv attribute

Source: Internet
Author: User

Meta http-equiv attribute, metahttp-equiv attribute

Http-equiv, as its name implies, is equivalent to an http File Header. It can return some useful information to the browser to help display the webpage content correctly and accurately. The corresponding attribute value is content, content is actually the variable value of each parameter. The syntax of the http-equiv attribute of the meat tag is as follows: <meta http-equiv = "parameter" content = "parameter variable value">. The http-equiv attribute mainly includes the following parameters: 1. Expires (TERM) Description: it can be used to set the expiration time of a webpage. Once the webpage expires, it must be re-transmitted to the server. Usage: <meta http-equiv = "expires" content = "Wed, 20 Jun 2007 22:33:00 GMT"> Note: The GMT time format must be used. 2. Pragma (cache mode) Description: it is used to disable the browser from accessing the page content from the Cache of the Local Machine. Once set, the page cannot be retrieved from the cache once it leaves the page. Usage: <meta http-equiv = "Pragma" content = "no-cache"> Note: visitors will not be able to browse offline. 3. Refresh Description: Refresh automatically and points to the new page. Usage: <meta http-equiv = "Refresh" content = "2; URL = http://www.net.cn/ "> Note: 2 indicates that the URL is automatically refreshed after 2 seconds. 4. Set-Cookie (cookie setting) Description: If the webpage expires, the cookie on the disk will be deleted. Usage: <meta http-equiv = "Set-Cookie" content = "cookievalue = xxx; expires = Wednesday, 20-Jun-2007 22:33:00 GMT; path =/"> note: the GMT time format must be used. 5. Window-target (display Window setting) Description: forces the page to be displayed on an independent page in the current Window. Usage: <meta http-equiv = "Window-target" content = "_ top"> Note: It is used to prevent others from calling their own pages in the framework. 6. content-Type (set the display character set) Description: sets the character set used on the page. Usage: <meta http-equiv = "content-Type" content = "text/html; charset = gb2312"> 7. Pics-label (webpage rating) usage: <meta http-equiv = "Pics-label" contect = ""> 8. Set the special effect of Page_Enter and Page_Exit on the Page <meta http-equiv = "Page-Enter" contect = "revealTrans (duration= 1.0, transtion = 12) "> set the special effect when leaving the Page <meta http-equiv =" Page-Exit "contect =" revealTrans (duration = 1.0, transtion = 12) "> the Duration value is the dynamic transition time of the webpage, in seconds. Transition is a transitional mode. Its value ranges from 0 to 23, corresponding to 24 Transition modes respectively. See the following table: 0 box contraction 1 box radiation 2 circular contraction 3 circular radiation 4 from bottom up 5 from top down 6 from left to right 7 from right to left 8 vertical blinds 9 horizontal blinds 10 levels lattice blinds 11 vertical lattice blinds 12 dissolve at will 13 expand from the left and right sides to the middle 14 expand from the middle to the left and right sides 15 expand from the upper and lower ends to the middle 16 expand from the middle up to the bottom ends 17 from the upper right corner expand to the lower left corner 18 expand from the lower right to the upper left corner 19 expand from the upper left to the lower right corner 20 expand from the lower left to the upper right corner 21 horizontal line expand 22 vertical line expand 23 randomly generate a transitional mode description: there is a content setting in internet Options of IE, which can prevent browsing some restricted websites. The restricted level of websites is set through meta attribute. 9. Clear the cache (access this website again and download it again !) <Meta http-equiv = "cache-control" content = "no-cache"> 10. Set the webpage expiration time <meta http-equiv = "expires" content = "0"> 11. keywords, <meta http-equiv = "keywords" content = "keyword1, keyword2, keyword3"> 12. page description <meta http-equiv = "description" content = "This is my page">

 

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.