HTML Tutorial: elaborate web page meta tags role

meta is used to simulate the response HTTP protocol packet header in the HTML document. meta tags for the pages and <head> </ head>, many useful meta tags. There are two meta attributes: name and http-equiv. The name attribute is mainly used to describe a web page corresponding to the content (web content), to facilitate the search engine robots, classification (currently almost all search engines use the online robot automatically find meta value to the classified pages). This is one of the most important is the description (site description in the search engine) and keywords (classification key), so it should add a meta value to each page. More common are the following: 

  The name attribute 

  1, <meta name = "Generator" contect = ""> for explaining generation tools (such as Microsoft FrontPage 4.0) and the like; 

  2, <meta name = "KEYWords" contect = ""> Description keywords your website to search engines; 

  3, <meta name = "DEscription" contect = ""> tells the search engine the main content of your site; 

  4, <meta name = "Author" contect = "your name"> tells the search engine of making your site; 

  5、<meta name="Robots" contect= "all|none|index|noindex|follow|nofollow"> 

  Wherein the properties as follows: 

  Set at all: the file will be retrieved, and the links on the page can be inquiries; 

  Is set to none: document will not be retrieved, and the links on the page can not be queried; 

  Set index: document will be retrieved; 

  Set to follow: a link on the page can be inquiries; 

  Set to noindex: document will not be retrieved, but the links on the page can be inquiries; 

  Set to nofollow: document will not be retrieved, links on the page can be inquiries. 

  http-equiv attribute 

  1、<meta http-equiv="Content-Type" contect="text/html";charset=gb_2312-80"> 

And <meta http-equiv = "Content-Language" contect = "zh-CN"> Home to illustrate the text and the language used in the production; 

  Another example is the English character set ISO-8859-1, and BIG5, utf-8, shift-Jis, Euc, Koi8-2 other character sets; 

  2, <meta http-equiv = "Refresh" contect = "n; url = http: //www.webjx.com"> page from the timing within the specified time n, the page to jump to a new front end study qun438905713, in most of the group are zero-based learners, we help each other, answer each other, and also to prepare a lot of learning materials, welcomed the zero-based junior partner to the exchange.

  3, <meta http-equiv = "Expires" contect = "Mon, 12 May 2001 00:20:00 GMT"> web page can be used to set the expiration time, once expired, you must re-call to the server. Note that you must use the GMT time format; 

  4, <meta http-equiv = "Pragma" contect = "no-cache"> is used to set the browser prohibit access to the page content from the cache of the local machine, after setting once you leave the page will no longer from the Cache recall; 

  5, <meta http-equiv = "set-cookie" contect = "Mon, 12 May 2001 00:20:00 GMT"> cookie is set, if the website expired, archiving the cookie will be deleted. Note also must use the GMT time format; 

  6, <meta http-equiv = "Pics-label" contect = ""> page rating, there is an element of set IE's internet options, you can prevent some websites restricted, while the level of restriction sites is through meta attribute set; 

  7, <meta http-equiv = "windows-Target" contect = "_ top"> force the page is displayed in a separate page in the current window, you can prevent your web page is treated as a frame page calls the others; 

  8, <meta http-equiv = "Page-Enter" contect = "revealTrans (duration = 10, transtion = 50)"> and <meta http-equiv = "Page-Exit" contect = "revealTrans (duration = 20, transtion = 6) "> special effects set to enter and leave the page, FrontPage this function that is in the" format / page transition ", but added the page can not be a frame page.

Published 100 original articles · won praise 42 · Views 100,000 +

Guess you like

Origin blog.csdn.net/webxuexi168/article/details/104447732