Meta is used to simulate HTTP Response Header packets in HTML documents. Meta Tags are used in
Name attribute:
1. <meta name = "generator" content = ""> describes generation tools (such as Microsoft FrontPage 4.0;
2. <meta name = "keywords" content = ""> describe keywords Of Your webpage to search engines;
3. <meta name = "Description" content = ""> tell the search engine the main content of your site;
4. <meta name = "author" content = "Your name"> tell the search engine the creator of your site;
5. <meta name = "Robots" content = "All | none | index | noindex | follow | nofollow">
The attributes are described as follows:
Set to all: the file will be retrieved, and the link on the page can be queried;
Set to none: files will not be retrieved, and links on the page cannot be queried;
Set to index: the file will be retrieved;
Set to follow: links on the page can be queried;
Set to noindex: the file will not be retrieved, but the link on the page can be queried;
Set to nofollow: files will not be retrieved, and links on the page can be queried.
HTTP-equiv attributes:
(1) <meta http-equiv = "Content-Type" content = "text/html; charset = gb_2312-80">
And <meta http-equiv = "content-language" content = "ZH-CN"> describe the text and language used for homepage production;
Also such as English is the ISO-8859-1 character set, there are big5, UTF-8, shift-JIS, EUC, Koi8-2 and other character sets;
2. <meta http-equiv = "refresh" content = "N; url = http: // yourlink"> regularly redirect a webpage to the HTTP: // yourlink;
3. <meta http-equiv = "expires" content = "mon, 12 May 2001 00:20:00 GMT"> you can set the expiration time of a webpage, once it expires, it must be called again on the server. Note that the GMT time format must be used;
4. <meta http-equiv = "Pragma" content = "no-Cache"> is used to disable the browser from accessing the page content from the cache of the local machine, once the page is set, it cannot be called out from the cache;
5. <meta http-equiv = "Set-cookie" content = "mon, 12 May 2001 00:20:00 GMT"> cookie setting: If the webpage expires, the cookie on the disk will be deleted. Note that the GMT time format must be used;
6. <meta http-equiv = "pics-label" content = ""> webpage rating, which has a content setting in Internet Options of IE, it can prevent browsing of some restricted websites, and the website's restricted level is set through the meta attribute;
7. <meta http-equiv = "Windows-target" content = "_ top"> force the page to be displayed on an independent page in the current window, it can prevent your webpage from being called as a frame page by others;
8. <meta http-equiv = "Page-Enter" content = "revealtrans (duration = 10, Transtion = 50) "> and <meta http-equiv =" Page-Exit "contect =" revealtrans (duration = 20, Transtion = 6) "> set the special effect when you enter and exit the page, this function is called "format/Webpage transition" in FrontPage, but the page to be added cannot be a frame page.