On W3Cschool is such that

<Meta> Elements can provide information on page yuan (meta - information), such as search engines and update frequency of the description and keywords.

<Meta> Label located at the top of the document, does not contain any content. <Meta> Label attribute defines the name/value pairs associated with the document.

the difference between HTML and XHTML

in HTML, <Meta> Tags do not have ending tags.

in XHTML, <Meta> Tags must be properly closed.

prompt and comments:

note: <Meta> The label is located in the head element inside forever.

note: metadata is always is in the form of name/value pairs to pass.

name attribute

name attribute provides the name of name/value pairs. HTML and XHTML tags are not specify any predefined <Meta> The name. Normally, you are free to use for yourself and the source document readers meaningful names.

" Keywords" Is a frequently used name. It defines a set of keywords for the document. Some search engines to meet these keywords, use these keywords to classify documents.

meta tags like this may be helpful to enter the search engine's index:

HTTP - equiv attribute

HTTP - equiv attribute provides a name for the name/value pairs. And instructs the server before you send the actual document to be sent to the browser's MIME document header containing the name/value pairs.

when the server to the browser sends the document, will send a lot of name/value pairs. Although some server will send a lot of this kind of name/value pairs, but all the server to send at least one: the content-type: text/HTML. This will tell the browser ready to accept an HTML document.

use a HTTP - equiv attributes <Meta> Label, the server will add the name/value pairs when sent to the browser content in the head.

content attribute

content attribute provides the value of name/value pairs. This value can be any valid string.

always and content attribute name attribute or HTTP - equiv attributes are used together.

scheme attribute

the scheme attribute is used to specify the attribute value to translation. This plan should be in by <Head> The profile attribute of the tag specified profiles are defined in the file.

meta is used to simulate the response of the HTTP protocol in the HTML document first message. Meta tags used in web pages <Head> With </head> The meta tags used a lot. There are two kinds of meta attributes: name and HTTP - equiv. Name property is mainly used to describe the web page, corresponding to the content (content), so that the search engine robots search, classification (currently almost all search engines use on-line automatic robot for meta values to web page classification). This is one of the most important description (description) on the site in the search engines and keywords keywords (classification), so you should give each page to add a meta value. More commonly used include the following:

name attribute

1, <Meta name=" Generator" Contect=" " >To illustrate generation tools (such as Microsoft FrontPage 4.0);

2, <Meta name=" KEYWords" Contect=" " >Illustrate your website keywords to search engines;

3, <Meta name=" DEscription" Contect=" " >Tell the search engine is the main content of your site;

4, <Meta name=" Author" Contect=" Your name " >Tell your site's search engine produced by the author;

5, <Meta name=" Robots" Contect=" All | none | index | noindex | follow | nofollow" >

properties of these instructions are as follows:

Settings to all: the file will be retrieved, and links on a page can be queried;

is set to none: files will not be retrieved, and links on a page can not be queried; Set the

as the index: file will be retrieved;

set as follow: links on a page can be queried; Set the

as noindex: files will not be retrieved, but links on a page can be queried;

set to nofollow: files will not be retrieved, the links on a page can be queried.

HTTP - equiv attribute

1, <Meta HTTP - equiv=" The Content - Type" Contect=" Text/html"; Charset=gb_2312-80 " >

and <Meta HTTP - equiv=" The Content - Language" Contect=" Useful - CN" >To illustrate homepage making use of words and language;

and as English is ISO - 8859-1 character set, and BIG5, utf-8, shift - Jis, Euc, Koi8-2 sets;

2, <Meta HTTP - equiv=" Refresh" Contect=" N; Url=http://yourlink" >Timing for web pages within the specified time n, jump to the page http://yourlink;

3, <Meta HTTP - equiv=" Expires" Contect=" Mon, 12 May 2001 00:20:00 GMT" >Can be used to set of web pages at the end of time, once the overdue must be to call again on the server. It's important to note that you must use the GMT time format;

4, <Meta HTTP - equiv=" Pragma" Contect=" No - cache" >Is used to set to ban the browser Cache read the page content from the local machine, after setting once left webpage cannot bring up again from the Cache.

5, <Meta HTTP - equiv=" The set - cookie" Contect=" Mon, 12 May 2001 00:20:00 GMT" >Cookies set, if the web expired, save cookies will be deleted. Need to be aware of is also must use the GMT time format;

6, <Meta HTTP - equiv=" Pics - label" Contect=" " >Web page ranking, in the Internet options of IE have a content set, can prevent some restricted web site, and the limitation of site level is through meta attributes to set;

7, <Meta HTTP - equiv=" Windows - Target" Contect=" _top " >Forcing the page in the current window to separate page displays, can prevent their own web pages being called as a page frame;

8, <Meta HTTP - equiv=" Page - Enter" Contect=" RevealTrans (duration=10, transtion=50) " >And <Meta HTTP - equiv=" Page - Exit" Contect=" RevealTrans (duration=20, transtion=6) " >Set to enter and leave the page when the special effects, the function of the FrontPage &other; Format/web transition &throughout; , but the page will not be able to is a frame.


This concludes the body part