Meta is HTML a auxiliary tags in the head. Maybe you think the code is dispensable. Really good if you can use meta tags, will bring you unexpected results, the role of meta tags are: search engine optimization (SEO), define the page language use, automatic refresh and point to the new page, page when converting the dynamic effect, the buffer control page, web page classification evaluation and control of web page display window! Composition of meta tags: meta tag has two attributes, they are HTTP - equiv attributes and name attribute, different properties and different parameter values, these different parameter values are different web function is realized. 1, the name attribute name attribute is mainly used to describe web pages, and the corresponding attribute value of the content, the content in the content is mainly to facilitate the search engine robots to find information and classified information. Meta tag's name attribute syntax format is: <Metaname=" Parameter " The content=" Specific parameter values " > . The name attribute mainly has the following parameters: A, Keywords (Keywords) description: Keywords used to tell what is your web page keyword search engine. For example: <Metaname=" Keywords" The content=" Science, education, culture, politics says, ecnomics, relationships, entertaiment, human" > B, the description (content description) description: the description is used to tell the search engine to your site. For example: <Metaname=" Description" The content=" Thispageisaboutthemeaningofscience, education, culture, " > C, robots, robot (wizard) description: robots used to tell the search robots which pages need to index, index of which pages don't need. Have all the content of the parameters, none, index, noindex, follow, nofollow. The default is all. For example: <Metaname=" Robots" The content=" None" > D, author (the author) : indicate the author of the web page, for example: <Metaname=" Author" The content=" Root, root@xxxx.com " > 2, HTTP HTTP - equiv - equiv attribute as the name implies, is equivalent to the HTTP headers, it can be returned to the browser in some useful information, to help correct and accurately display web page content, and the corresponding attribute value of the content, the content of the content is actually different parameter values of the variables. HTTP - equiv attribute of the meta tag syntax format is: <Metahttp - equiv=" Parameter " The content=" Parameter values " > ; The HTTP - equiv attributes mainly has the following parameters: A, Expires (term) : can be used to set of web pages at the end of time. Once the web expired, must be on the server to transmit. Usage: <Metahttp - equiv=" Expires" The content=" Fri, 12 jan200118: GMT" puts; > Note: you must use the GMT time format. B, Pragma (cache mode) : banned browser access page content from the local computer's cache. Usage: <Metahttp - equiv=" Pragma" The content=" No - cache" > Note: this setting, the visitor will not be able to offline browsing. C, Refresh (Refresh) description: automatically Refresh and point to the new page. Usage: <Metahttp - equiv=" Refresh" The content=" 2; URL=http://www.jb51.net " > (note that the back of the quotes, respectively in the number of seconds behind and in front of the URL) note: the 2 refers to stay after 2 seconds automatically refresh to the URL web address. D, the Set - cookies (cookies setting) note: if the web page has expired, so save the Cookie will be deleted. Usage: <Metahttp - equiv=" The Set - Cookie" The content=" cookievalue=http://www.jb51.net//web/xxx; Expires=Friday, 12 - Jan - 200118: bear GMT; Path=/" > Note: you must use the GMT time format. E, the Window - target (set of display Window) description: forcing the page in the current Window displayed in a separate page. Usage: <Metahttp - equiv=" The Window - target" The content=" _top " > Note: to prevent others call their own pages in the framework. F, the content-type set (display character set) note: set the page USES character set. Usage: <Metahttp - equiv=" The content - type" The content=" Text/HTML. Charset=gb2312 " > G, the content and Language (display Language Settings) usage: <Metahttp - equiv=" The Content - Language" The content=" Useful - cn"/> H, cache-control follow specified request and response caching mechanism. Cache-control follow specified request and response caching mechanism. In the request or response message sets the cache-control will not change another Cache handling process in the process of message processing. Request cache instructions including no cache, no store, Max - age, Max - stale, min - fresh, on ly - if - cached, instruction in the response message including public, private, no cache, no store, no transform, must revalidate, proxy - revalidate, Max - age. Meaning as follows the instructions of each message instructions Public response can be any buffer cache Private indicates the whole or part of a response message to a single user, cannot be Shared cache. This allows the server to describe when a user only part of the response message, the response messages for other users' request is invalid no instructions - the cache request or response message can't cache the no - the store important information is used to prevent unintentional release. Send in the request message will make the request and response messages are not using the cache. Max - age indicates the client can receive lifetime is not greater than the specified time (in seconds) the response of the min - fresh instruction the client can receive the response time is less than the current time and specify the time response of the Max - stale instructs the client can receive timeout period beyond the response message. If Max - stale news value is specified, then the client can receive above within a period specified values of the response message. Meta tags using techniques: Meta tags are a kind of language used to describe web properties, standard Meta tags can facilitate the search engine sequencing, weight increase search engine site rankings. To site do more accord with standard of search engine, it is necessary to understand the meta tags, meta tags by Seoer may result from you about below meaning and method of use: 1, the keywords meta tag written for: <Metaname=" Keywords" The content=" Information parameters "/> Meat tag Keywords information parameters, on behalf of the state what website Keywords. 2, the Description META tag <Metaname=" Description" The content=" Information parameters "/> The Description meta tag information parameters, representing illustrate the main content of the website, what situation is. 3, META tags, HTTP - equiv=Content - Typecontent=" HTTP - equiv=the content-type to text/HTML head represents the HTTP protocol, prompt web browser information, <Metahttp - equiv=" The content - type" The content=" Text/HTML. " charset=information parameters/> Meta tag information charset parameter such as GB2312, on behalf of that web site is to use the coding is simplified Chinese, Meta tag information charset parameter such as BIG5, on behalf of the site is adopts encoding is traditional Chinese; Meta tag information charset parameter such as iso - 2022 - jp, on behalf of that web site is to use the coding is Japanese, Meta tag information charset parameter such as ks_c_5601, on behalf of the site is adopts encoding is Korean; Meta tag information charset parameters such as the ISO - 8859-1, on behalf of that web site is to use the encoding is in English; Meta tag information parameters such as utf-8 charset, on behalf of the language of the world coding; 4, META tag generator <Metaname=" Generator" The content=" Information parameters "/> Meta tag information parameters of the generator, on behalf of the account what software is used by the production site. 5, author of META tags <Metaname=" Author" The content=" Information parameters " > Meta tag information parameters of the author, on behalf of the webpage copyright author information. 6, META tags, HTTP - equiv=" Refresh" <Metahttp - equiv=" Refresh" The Content=" Time; Url=Url parameter " > Meta tags of the page Refresh automatically Refresh represents how much time, plus the Url in the Url parameters means, how long does it automatically links to other web sites. 7, META tags, HTTP - EQUIV=" Pragma" The CONTENT=" No - cache" <METAHTTP - EQUIV=" Pragma" The CONTENT=" No - cache" > On behalf of the banned browser page content from a trip to the local computer's cache, such setting, visitors will not be able to offline browsing. 8, the COPYRIGHT META tags <METANAME=" Copyright" The CONTENT=" Information parameters " > COPYRIGHT information parameters of meta tags, on behalf of the COPYRIGHT information website. 9, META tags, HTTP - equiv=" Imagetoolbar" <Metahttp - equiv=" Imagetoolbar" The content=" False"/> Specifies whether according to picture toolbar, when to false does not display, as to true on behalf of the display. 10 the Content and META tags - Script -type <Metahttp - equiv=" The Content Script - Type" The Content=" Text/javascript" > W3C web standards, specify the type of the page script. 11, META tags, revisit - after <METAname=" Revisit - after" The CONTENT=" 7 days " > Revisit - on behalf of site visit, after 7 days on behalf of the seven days, and so on. 12, Robots< META tags; Metaname=" Robots" Contect=" Information parameters " > Robots representative told search engine Robots grasping what page properties of these instructions is as follows: information parameters to all: file will be retrieved, and links on a page can be queried; Information parameters to none: files will not be retrieved, and links on a page can not be queried; Information parameter is the index: the file will be retrieved; Information parameter as follow: links on a page can be queried; Information for the parameter noindex: files will not be retrieved, but links on a page can be queried; Information parameters for nofollow: file will be retrieved, but links on a page can not be queried;


This concludes the body part