Role of meta in html (collected and sorted online) _ HTML/Xhtml _ webpage Creation

Source: Internet
Author: User
Tags microsoft frontpage
The meta element provides meta-information about the page. For example, for descriptions and Keywords of search engines and update frequency, the tag is in the header of the document and does not contain any content, read more This is the description on W3Cschool.

Elements provide meta-information about pages, such as descriptions and keywords for search engines and update frequency.

The tag is in the document header and does not contain any content. Tag attributes define the name/value pairs associated with the document.

Differences between HTML and XHTML

In HTML, The tag does not have an end tag.

In XHTML, The tag must be properly disabled.

Tips and notes:

Note: The label is always inside the head element.

Note: Metadata is always transmitted in pairs by name/value.

Name attribute

The name attribute provides the name in the name/value pair. The HTML and XHTML labels do not specify any pre-defined Name. Generally, you can use meaningful names for yourself and readers of the source document.

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

Meta Tags like this may be helpful for indexing the search engine:

Http-equiv attributes

The http-equiv attribute provides a name for the name/value pair. And instruct the server to include the name/value pair in the header of the MIME document to be sent to the browser before sending the actual document.

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

Use The server adds the name/value pair to the Content Header sent to the browser.

Content Attributes

The content attribute provides values in the name/value pair. This value can be any valid string.

The content attribute must always be used with the name or http-equiv attribute.

Scheme attributes

The scheme attribute is used to specify the scheme for translating attribute values. This solution should beThe profile attribute of the tag is defined in the profile file.

Meta is used to simulate HTTP Response Header packets in HTML documents. Meta tag used for webpageAndMeta Tags are of great use. Meta has two 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:

Name attribute

1, Used to describe the generation tool (such as Microsoft FrontPage 4.0;

2, Describe keywords Of Your webpage to search engines;

3, Tell the search engine the main content of your site;

4, Tell the search engine the creator of your site;

5,

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,

And The text and language used to describe the 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, Regularly redirect a webpage to http: // yourlink within the specified time;

3, It can be used to set the expiration time of a webpage. Once it expires, it must be re-called on the server. Note that the GMT time format must be used;

4, It is used to disable the browser from accessing the page content from the Cache of the Local Machine. Once the page is set, it cannot be called out from the Cache;

5, Cookie setting. If the webpage expires, the cookie on the disk will be deleted. Note that the GMT time format must be used;

6, Webpage rating: There is a content setting in the internet option of IE, which can prevent browsing of some restricted websites. The website's restricted level is set through the meta attribute;

7, 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, And Set the special effect when you enter and exit the page. This function is called "format/Webpage transition" in the 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.