meta tag in an HTML document name http-equiv

Transfer from  http://www.dazix.cn/post/45.html

 

meta is used to simulate the response HTTP protocol packet header in the HTML document. A web page for the <head> and </ head>, a lot of useful.
meta tags in two parts: the description of the page name and HTTP header information http-equiv.

The name attribute

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.

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

2, <meta name = "Keywords " contect = " keyword 1, keyword 2, keyword 3, keyword 4">
Description keywords your website to search engines. Note: among the keywords in English comma "," separated. Best to keep the number of keywords in less than 5, and page content related to keywords.

3, <meta name = "Description " contect = " Description of your web page">
tells the search engine the main content of your site, to describe the content and page content related to the number of words in 150 words or less.

4, <meta name = "Author " contect = " your name">
told the author to make search engines your site, Content can be: you or your production team's name, or Email.

5, <Meta name = "Copyright " Content = " * page belongs to all .All Rights Reserved **">
marking of the copyright. 

6, <META name = "revisit  -after" CONTENT = "1 days">
generally used to guide the search engines re-visit your site time interval, generally use days.

7, <Meta name = "Robots" contect = "none-index-All-noindex-the Follow-nofollow">
Robots used to tell search robots which pages to index, which does not require an index page, the default is all, which Property Description as follows:
set all: the file will be retrieved, and the links on the page can be inquiries;
set to none: document will not be retrieved, and the links on the page can not be queried;
set index: files will be retrieval;
set as 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 It can be queried.

http-equiv attribute
http-equiv similar to the head of HTTP protocol, it responded to the browser some useful information to help correct and accurate display Web content.

1, Content-Type and Content-Language (Display Character Set)
<Meta HTTP-equiv = "the Type-the Content" Contect = "text / HTML"; charset = GB_2312-80 ">
<Meta-equiv = HTTP" content-language "contect =" zh -CN ">
page Setup character set used for descriptive text or language used by home production, the browser will be based on this call the appropriate character set to display the page. Another example is English ISO-8859-1, Simplified Chinese GB2132, Traditional Chinese BIG5, universal character set utf-8, the Japanese character set iso-2022-jp, Korean ks_c_5601, shift-Jis, Euc, Koi8-2 other character sets.

2, Refresh (refresh)
<Meta HTTP-equiv = "Refresh" contect = "the n-; url = HTTP: // yourlink">
<Meta HTTP-equiv = "Refresh" Content = "30">
Let the number of seconds to refresh the page or make your own web page automatically link to other web pages.

3, Expires (period)
<Meta - HTTP-equiv = "the Expires" the Content = "0">
<Meta HTTP-equiv = "the Expires" Contect = "Mon, 12 is On May 2001 00:20:00 GMT">
for setting pages in the cache expiration time, once expired, you must re-call to the server. Note: You must use the GMT time format.

4, Pragma (cach mode)
<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, each visit will refresh the page, after setting once you leave the page will no longer be called from the Cache, visitors will not be able to browse offline.

5, Set-Cookie (cookie settings)
<Meta HTTP-equiv = "the SET-the cookie" contect = "Mon, 12 May 2001 00:20:00 GMT">
<Meta HTTP-equiv = "the Set-Cookie" Content = "Cookievalue = XXX; expires = catalog on Wednesday, 21 is-On Oct-98 16:14:21 GMT; path = /"> 
cookie is set, if the website expired, archiving the cookie will be deleted. Note also must use the GMT time format.

6, Window-target (show window settings)
<Meta HTTP-equiv = "Windows-Target" contect = "_ Top">
force the page is displayed in a separate page in the current window, you can prevent your pages by others as a frame page calls, Content options: _blank, _top, _self, _parent .

7, Pics-label (RSAC rating page)
<Meta HTTP-equiv = "Pics-label" contect = "">
<META HTTP-equiv = "Pics-label" Contect = "(PICS-1.1'http: // www.bazhan.net 'I gen comment' RSACi North America Sever 'by' [email protected] 'for' http://www.microsoft.com 'on' 1997.06.30T14: 21-0500 'r (n0 s0 v0 l0)) "> 
page rating, there is an element of the set IE's internet options, you can prevent some websites restricted, while the level of restriction sites is through the parameter settings.

8, Page-Enter, Page- Exit ( entry and exit)
<Meta - HTTP-equiv = "Page-the Enter" the Content = "blendTrans (the Duration = 0.5)"> 
<Meta - HTTP-equiv = "Page-the Exit" the Content = " blendTrans (Duration = 0.5) "> 
or:
<Meta - HTTP-equiv =" Page-the Enter "the Content =" revealTrans (DURATION = X, Transition = Y) ">
<Meta - HTTP-equiv =" Page-the Exit "the Content =" revealTrans (duration = x, transition =   y) ">
this is some of the effects when the page is loaded and recall. Note: blendTrans is a dynamic filter, generating fade effect. Another dynamic filters may also be used RevealTrans page entry and exit effects: Duration indicates the duration of filter effects (unit: second); Transition type of filter. It indicates what type of effects used a value of 0-23.

9, IE6 (page generator)
<Meta - HTTP-equiv = "IE6" the Content = "Generator">  
page generator generator, is ie6.

10, Content-Script-Type (related to the script) 
<Meta HTTP-equiv = "Content-Script-Type" Content = "text / JavaScript"> 
This is the recent W3C specification, specify the type of script pages.

Common META Example:

<META HTTP-equiv = Content-Type Content = "text / HTML; charset = GB2312">
// set the page language to Simplified Chinese
<META content = "keyword" name = "keywords">
// Set keyword
<META content = "description" name = "description">
// description set
<the META HTTP-equiv = "the refresh" the content = "30">
// this page automatically refreshed 30 seconds
<META name = "robots "Content =" index, the Follow "/>
// setting allows the search engines can crawl, you can query the page link
<META name =" googlebot "Content =" index, the Follow "/>
// set for google search robots allow search engines can crawl, you can query the page link
<META name = "author" Content = "Dazix">
// page of
<META name = "Copyright" Content = "All Rights Reserved dazix">
// Copyright page
<the META name = "Revisit-After" the CONTENT = "Days. 1">
// set to one day visit

Published 18 original articles · won praise 16 · views 390 000 +

Guess you like

Origin blog.csdn.net/f_zongjian/article/details/5696125