All browsers support meta tags to provide page-related information, which is in the form of a name (HTTP-EQUIV and name)/value (content label).
Property content, which defines information about the HTTP-EQUIV (defining the HTTP header information, the information that the server provides to the browser) and the name (specifying the related names of the web page information);
http-equiv is the HTTP header that specifies some useful information that the server returns to the browser.
Property |
Value |
Role |
|
Http-equiv |
Content-type |
Set the character set of a page |
http-equiv="Content-type" content= "text/html; Charset=utf-8 "> HTML5 page is done directly using <meta charset=" Utf-8 "/> |
|
Expires |
Set the expiration time for a page |
http-equiv="Expires" content="Wed, June 22:33:00 GMT" > |
|
Refresh |
Automatically refresh to new page |
http-equiv="Refresh" content="2;url=http://www.net.cn/" >//2 on behalf of the page for how long after the jump back to the URL |
|
Set-cookie |
If the cookie expires, the local cookie is automatically deleted |
http-equiv="Set-cookie" content= "cookievalue=xxx;expires=wednesday, 20-jun-2007 22:33:00 GMT; path=/"> |
|
pragma |
Prohibit browser from calling cache locally |
http-equiv="Pragma" content="No-cache" > |
|
Window-target |
Force the page to display independently in the browser window |
http-equiv="Window-target" content="_top" > |
|
Page_enter, Page_exit |
Set the effect of entering the page and exiting the page |
<Meta http-equiv="Page-exit" contect="Revealtrans (duration=1.0,transtion=)"> |
|
Cache-control |
Clear Cache |
<Meta http-equiv= "cache-control" content="No-cache"> |
Name Associates content to a name, neither HTML nor XHTML performs a fixed name value, and is free to use a meaningful name for yourself and the reader of the source document
Property |
Value |
Role |
Instance |
Name |
Author |
Specify the owner of the page |
<meta name= "Author" content= "James Bond"/> |
|
Description |
Page description, for search engine inclusion |
<meta name= "description" content= "China Design Network is the earliest starting design portal in China, designers of the online home"/> |
|
Keywords |
Page keywords, used by search engine included |
<meta name= "keywords" content= "design, sister"/> |
|
Generator |
Used to describe the Web site authoring build Tool |
<meta name= "generator" content= "Microsoft"/> |
|
Revised |
Modification time of Web document |
<meta name= "Revised" content= "design net, 6/24/2015"/> |
|
Viewport |
Used to control page scaling |
<meta name= "viewport" content= "width=240, height=320, User-scalable=yes, initial-scale=2.5, maximum-scale=5.0, minimun-scale=1.0 ">//width Specify the visual width, pixel value, or device-width of the page, Initial-scale set the zoom ratio when the page is initialized, user-scalable specify whether the viewable area can be scaled, Maximum-scale, Minimun-scale page maximum minimum zoom ratio. do not use the Viewport property if you want the page to be scaled on different devices according to the design size of the page (those sites with fixed widths) |
|
Copyright |
Website Copyright Information |
<meta name= "Copyright" name= "Copyright ironside"/> |
HTML page META tag content detailed