Online collection of meta-functions in HTML

Source: Internet
Author: User
Tags microsoft frontpage

This is stated on the W3cschool:

The <meta> element provides meta-information about the page (meta-information), such as descriptions and keywords for search engines and update frequency.

The <meta> tag is located in the header of the document and does not contain any content. The properties of the <meta> tag define the name/value pairs associated with the document.

The difference between HTML and XHTML

The,<meta> tag does not have an end tag in HTML.

In XHTML, the,<meta> tag must be properly closed.

Tips and Comments:

Note The:<meta> tag is always inside the head element.

Note: Metadata is always passed in pairs in the form of a name/value.

Name property

The Name property provides the names in the name/value pairs. Neither HTML nor XHTML tags specify any pre-defined <meta> names. Typically, you are free to use a meaningful name for yourself and the reader of your source document.

"keywords" is a name that is often used. It defines a set of keywords for a document. Some search engines use these keywords to categorize documents when they encounter these keywords.

A meta tag like this might be helpful for entering the index of a search engine:

Http-equiv Property

The Http-equiv property provides a name for a name/value pair. and instructs the server to include a name/value pair in the header of the MIME document to be routed to the browser before sending the actual document.

When the server sends a document to the browser, many name/value pairs are sent first. Although some servers send many of these name/value pairs, all servers must send at least one: content-type:text/html. This tells the browser to be ready to accept an HTML document.

When using the <meta> tag with the Http-equiv property, the server adds a name/value pair to the header of the content sent to the browser.

Content Properties

The Content property provides the value in a name/value pair. The value can be any valid string.

The content property is always used with the Name property or the Http-equiv property.

Scheme attribute

The scheme attribute is used to specify the scheme to be used to translate attribute values. This scenario should be defined in the profiles file specified by the profile property of the


Meta is the response header message used to simulate an HTTP protocol in an HTML document. Meta tags are used in


Name property

1, <meta name= "Generator" contect= "" > To illustrate the Build tool (such as Microsoft FrontPage 4.0), etc.;

2, <meta name= "KEYWords" contect= "" > to the search engine to explain the keywords of your page;

3, <meta name= "DEscription" contect= "" > Tell the Search engine the main content of your site;

4, <meta name= "Author" contect= "Your Name" > tell the Search engine the author of your site's production;

5, <meta name= "Robots" contect= "All|none|index|noindex|follow|nofollow" >

The properties are described as follows:

Set to all: The file will be retrieved and the link on the page can be queried;

Set to None: The file will not be retrieved, and the link 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: The file will not be retrieved and the link on the page can be queried.

Http-equiv Property

1, <meta http-equiv= "Content-type" contect= "text/html"; charset=gb_2312-80 ">

and <meta http-equiv= "Content-language" contect= "ZH-CN" > to illustrate the text and language used in the production of the homepage;

Also such as English is iso-8859-1 character set, there are BIG5, Utf-8, Shift-jis, Euc, Koi8-2 and other character sets;

2, <meta http-equiv= "Refresh" contect= "N;url=http://yourlink" > Timing let the page in 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 the expiration time of the Web page and must be recalled to the server once it expires. It is important to note that the GMT time format must be used;

4, <meta http-equiv= "Pragma" contect= "No-cache" > is used to set the browser from the local computer cache to access the page content, set once left the page can not be recalled from the cache;

5, <meta http-equiv= "Set-cookie" contect= "mon,12 May 2001 00:20:00 GMT" >cookie set, if the page expires, the cookie will be deleted. It is also important to note that GMT time format must be used;

6, <meta http-equiv= "Pics-label" "contect=" "> Page rating, Internet Options in IE have a content setting, you can prevent browsing some restricted sites, The limit level of the website is set by the meta attribute;

7, <meta http-equiv= "Windows-target" contect= "_top" > Force page in the current window with a separate page display, you can prevent their own web page by others as a frame page call;

8, <meta http-equiv= "Page-enter" contect= "Revealtrans (duration=10,transtion=)" > and <meta http-equiv= " Page-exit "contect=" Revealtrans (duration=20,transtion=6) > Set special effects when entering and leaving the page, which is "format/page Transitions" in FrontPage, However, the added page cannot be a frame page.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.