There are two types of properties of meta: name and http-equiv. The name attribute is mainly used to describe web pages, corresponding to content (web page content), so that search engine robots can search and classify (currently, almost all search engines use online robots to automatically search meta values to classify web pages). The most important of these are description (the description of the site on search engines) and keywords (categorized keywords), so you should add a meta value to each page. The most commonly used ones are the following:
name attribute
1. <meta name=Generator contact=> is used to illustrate the generation tool (such as Microsoft FrontPage 4.0), etc.;
2. <meta name=KEYWords contact=>Explain the keywords of your web page to search engines;
3. <meta name=DEscription contact=>Tell search engines the main content of your site;
4. <meta name=Author contact=your name>Tell search engines the author of your site;
5. <meta name=Robots contact= all|none|index|noindex|follow|nofollow>
The attributes are described as follows:
Set to all: the file will be retrieved and the links on the page can be queried;
Set to none: the file will not be retrieved, and the links on the page cannot be queried;
Set as index: the file will be retrieved;
Set to follow: The links on the page can be queried;
Set to noindex: the file will not be retrieved, but the links on the page can be queried;
Set to nofollow: the file will not be retrieved, and the links on the page can be queried.
http-equiv attribute
1. <meta http-equiv=Content-Type contact=text/html;charset=gb_2312-80>
and <meta http-equiv=Content-Language contact=zh-CN> are used to explain the text and language used in homepage production;
For example, the English is the ISO-8859-1 character set, and there are also BIG5, utf-8, shift-Jis, Euc, Koi8-2 and other character sets;
2. <meta http-equiv=Refresh contact=n;url=http://yourlink> time to let the web page jump to the page within the specified time n;
3. <meta http-equiv=Expires contact=Mon,12 May 2001 00:20:00 GMT> can be used to set the expiration time of the web page. Once it expires, it must be called on the server again. It should be noted that the GMT time format must be used;
4. <meta http-equiv=Pragma contact=no-cache> is used to set the browser to prohibit the page content from the local cache, and once the web page is left, it cannot be called out from the cache again;
5. <meta http-equiv=set-cookie contact=Mon,12 May 2001 00:20:00 GMT>cookie setting. If the web page expires, the saved cookies will be deleted. It is also necessary to use the GMT time format;
6. <meta http-equiv=Pics-label contact=>Web page rating, there is a content setting in the Internet options of IE, which can prevent browsing some restricted websites, and the restriction level of the website is set through the meta attribute;
7. <meta http-equiv=windows-Target contact=_top>Force the page to be displayed as an independent page in the current window, which can prevent your web page from being called by others as a frame page;
8. <meta http-equiv=Page-Enter contact=revealTrans(duration=10,transtion=50)> and <meta http-equiv=Page-Exit contact=revealTrans(duration=20,transtion=6)> set the special effect when entering and leaving the page. This function is the format/web page transition in FrontPage, but the added page cannot be a frame page.
The above are several commonly used meta attributes. Friends who have personal homepages may wish to add it to your homepage, and the effect will be different:).