Meta is used to simulate HTTP Response Header packets in HTML documents. Meta
Tags are used in Tags are useful. Meta
There are two types of attributes: Name and HTTP-equiv. The name attribute is mainly used to describe a webpage, corresponding to content (webpage content ), this allows search engines to search for and classify robots. (currently, almost all search engines use online robots to automatically search for Meta values to classify webpages ). The most important of these are description and keywords. Therefore, you should add a meta value to each page. The following are commonly used:
NameAttribute
1. <MetaName = "generator"Contect = ""> describes the generation tools (such as MicrosoftFrontpage4.0;
2. <MetaName = "keywords"Contect = ""> describe keywords Of Your webpage to search engines;
3. <MetaName = "Description"Contect = ""> tell the search engine the main content of your site;
4. <MetaName = "author"Contect = "Your name"> tell the search engine the creator of your site;
5. <MetaName = "Robots"Contect ="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. <MetaHTTP-equiv = "Content-Type"Contect = "text/html"; charsets = gb_2312-80 ">
And<MetaHTTP-equiv = "content-language"Contect = "ZH-CN"> describes 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. <MetaHTTP-equiv = "refresh"Contect = "N; url = http: // yourlink"> regularly redirect a webpage to http: // yourlink at the specified time;
3. <MetaHTTP-equiv = "expires"Contect = "mon, 12May200100:20:00GMT "> it can be used to set the expiration time of a webpage. Once the webpage expires, it must be called again on the server. Note that the GMT time format must be used;
4. <MetaHTTP-equiv = "Pragma"Contect = "no-Cache"> it is used to disable the browser from accessing the page content from the cache of the Local Machine. Once set, it cannot be called out from the cache once it leaves the page;
5. <MetaHTTP-equiv = "Set-cookie"Contect = "mon, 12May200100:20:00GMT "> cookie setting. If the webpage expires, the cookie on the disk will be deleted. Note that the GMT time format must be used;
6. <MetaHTTP-equiv = "pics-label"Contect = ""> webpage rating, which has a content setting in Internet Options of IE, can prevent browsing some restricted websites, the website's restriction level is set through the meta attribute;
7. <MetaHTTP-equiv = "Windows-target"Contect = "_ top"> force the page to be displayed on an independent page in the current window to prevent its webpage from being called as a frame page;
8. <MetaHTTP-equiv = "Page-Enter"Contect = "revealtrans (duration = 10, Transtion =50) "> and <MetaHTTP-equiv = "Page-Exit"Contect = "revealtrans (duration = 20, Transtion = 6)"> set the special effect for entering and leaving the page. This function is the "format/Webpage transition" in FrontPage ", however, the added page cannot be a frame page.