Good programmers Java Tutorial meta tags Share what role

  Good programmers Java tutorial Share meta tag what role, in fact, meta tag has two attributes, they are http-equiv attribute and name attribute.

  1 , please describe meta role label.

 

  answer:

 

  meta is used in HTML simulation document HTTP response header packet protocol. meta tags for the pages of the < head > and < / head > in, meta many useful labels. meta attributes, there are two: name and HTTP-equiv . 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). Among the most important is the Description (site description in the search engine) and keywords (classification key), so it should give each page plus a meta value. More common are the following:

 

  name attribute

 

  1) . < Metaname = "Generator" Contect = "" > for explaining generation tools (e.g. MicrosoftFrontPage4.0 ) and the like;

 

  2) . < Metaname = "the KEYWORDS" contect = "" > Description keywords your website to search engines;

 

  3) . < Metaname = "DESCription" contect = "" > tell the search engine the main content of your site;

 

  . 4) < metaname = "Author" contect = " your name " > tells the search engine of making your site;

 

  5).metaname="Robots"contect=

 

  "all|none|index|noindex|follow|nofollow"

 

  Wherein the properties as follows:

 

  Is set to All : files 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 the Follow : links 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.

 

  6) .http-equiv attribute

 

  a、<metahttp-equiv="Content-Type"contect="text/html";charset=gbk"

 

  And < metahttp-equiv = "the Content-Language" Contect = "the CN-ZH" > for Language page captions and used in the production;

 

  B , < metahttp-equiv = "the Refresh" Contect = "n; URL = HTTP: // yourlink" > timer allows the page at the specified time n the jump to the page HTTP; // yourlink ;

 

  C , < metahttp-equiv = "the Expires" Contect = "Mon, 12May200100: 20 is: 20:00 GMT" > page may be used to set the expiration time, the expiration once again to the server must be invoked. Note that you must use the GMT time format;

 

  d , < metahttp-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 leaving the web page can not be set once from Cache and then transferred in out;

 

  E , < metahttp-equiv = "SET-cookie" Contect = "Mon, 12May200100: 20 is: 20:00 GMT" > cookie is set, if the website expired, archiving the cookie will be deleted. Note also must use the GMT time format;

 

  f , < metahttp-equiv = "Pics-label" contect = "" > page rating, in IE 's internet there is an element of setting options, you can prevent some websites restricted, while the level of restriction sites is through meta property to set up;

 

  G , < metahttp-equiv = "Windows-Target" contect = "_ Top" > force the page is displayed in a separate page in the current window, you can prevent your pages are others as a frame page calls;

 

  h、<metahttp-equiv="Page-Enter"contect="revealTrans(duration=10,transtion=50)">和<metahttp-equiv="Page-Exit"

 

  = Contect "revealTrans (DURATION = 20 is , TRANSTION =. 6)" > set special effects enter and leave the page, this function i.e. the FrontPage "format / page transition", but can not be added to the page is a frame page .

Guess you like

Origin www.cnblogs.com/gcghcxy/p/11091212.html