HTML is often written, but meta settings have been neglected.
What is
Is an HTML Tag (Auxiliary tag ).
It is located in the document's header
Tag.
What can be done?
It seems that whether meta is set has no effect on the display of html page content.
However, correct meta settings can achieve the following effects:
1. Control page Buffering
2. Automatically refresh and refer to the new page
3. SEO search engine optimization
4. Define the language used by the page
5. Achieve the dynamic effect of webpage Conversion
6. webpage Rating Evaluation
And so on
Meta attributes
Meta is a tag. The attributes and corresponding values of this tag can be set as follows:
Attribute |
Value |
Description |
|
Content |
Some_text |
Define metadata related to the http-equiv or name attribute |
Attribute |
Value |
Description |
|
Http-equiv |
Content-typeexpiresrefreshset-cookie |
Associate the content attribute with the HTTP header. |
|
Name |
Authordescriptionkeywordsgeneratorrevisedothers |
Associate the content attribute with a name. |
|
Scheme |
Some_text |
Defines the format used to translate the content property value. |
Name attribute
Keywords is a frequently used name. It defines a set of keywords for the document. Some search engines use these keywords to classify documents.
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.
Http-equiv attributes
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. For example, add:
Use
The server adds the name/value pair to the Content Header sent to the browser. For example, add:
Http-equiv = charset content = iso-8859-1> Http-equiv = expires content = 31 Dec 2008>
In this way, the header sent to the browser should include:
content-type: text/htmlcharset:iso-8859-1expires:31 Dec 2008
Scheme attributes
The scheme attribute is used to specify the scheme for translating attribute values. This solution should be defined in the profile file specified by the profile attribute of the tag.
Meta usage
1.
Representative to describe the main content of the website. What is the overview?
2.
Indicates the software used by the website.
3.
Copyright author information
4.
The COPYRIGHT parameter of the meta tag, indicating the website COPYRIGHT information.
Robots representatives tell search engine Robots what pages to capture
4.
The Refresh of the meta tag indicates the time when the webpage is automatically refreshed, And the Url parameter is added to indicate the time when other URLs are automatically linked.
5.
If the charset information parameter is GB2312, it indicates that the website uses simplified Chinese characters;
6.
Specifies whether to display the image toolbar. If it is set to false, the image is not displayed. If it is set to true, the image is displayed.
7.
W3C Web page specification, indicating the script type on the page.
8.
This means that the browser is prohibited from accessing the page content from the cache of the Local Computer. In this way, visitors will not be able to browse the page offline.
9.
Revisit-after indicates that the website is revisited, and 7 days indicates 7 days.