Introduction to the common writing of site meta tags

Source: Internet
Author: User
Keywords META tags

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

Meta tags are divided into two parts: HTTP header information (HTTP-EQUIV) and page description information (NAME).

I. HTTP-EQUIV

HTTP-EQUIV is similar to the HTTP header protocol, which responds to the browser with some useful information to help correctly and accurately display the content of the Web page. Common HTTP-EQUIV types are:

1, Content-type and content-language (display character set settings)

Usage: <meta http-equiv= "Content-type" content= "html"; charset=gb2312 "> or <meta http-equiv=" content-language "content=" zh ">

Set the character set used by the page to describe the text or language used by the home page, and the browser will invoke the corresponding character set to display the page content. Simplified Chinese is generally GB2132, traditional Chinese for BIG5, Japanese character set is ISO-2022-JP, Korean is ks_c_5601, etc.

2. Refresh

Usage: <meta http-equiv= "Refresh" content= "> <meta http-equiv=" Refresh "content=" 5; Url=http://www.bazhan.net ">

Let the page refresh itself in seconds, or the number of seconds to have the page automatically linked to other pages.


3. Expires (term)

Usage: <meta http-equiv= "Expires" content= "0" > or <meta http-equiv= "Expires" content= "Wed, Modified, 1997 08:21:57 GMT" >

Specifies the expiration time of a Web page in the cache, and must be reopened on the server once the page expires. Note: The time format for GMT must be used.

4, Pragma (Cach mode)

Usage: <meta http-equiv= "Pragma" content= "No-cach" >

The page does not exist in the cache and the page is refreshed on each visit. This setting will make it impossible for visitors to browse offline.

5, Set-cookie (Cookie set)

<meta http-equiv= "Set-cookie" content= "COOKIEVALUE=XXX; expires=wednesday,21-oct-98 16:14:21 GMT; path=/">

When a browser accesses a page, it is cached and can be read from the cache the next time it is accessed to increase speed. When you want your visitors to refresh the icon for your ad every time, or to refresh your counter every time, disable caching. Usually HTML files do not need to disable caching, for pages such as ASP, you can use disable caching, because every time you see the page is dynamically generated on the server, the cache is meaningless. If the page expires, the saved cookie is deleted. You must use the time format for GMT.

6, Window-target (display window settings)

Usage: <meta http-equiv= "Widow-target" content= "_top" >

Forces the page to appear as a separate page in the current window. This property is used to prevent others from calling your page in the frame. Content options: _blank, _top, _self, _parent.

7, Pics-label (Web Rsac rating)

Usage: <meta http-equiv= "Pics-label" contect= "PICS-1.1 ' http://www.bazhan.net ' I gen comment ' RSACi North America Sever ' By

' inet@microsoft.com ' for ' http://www.microsoft.com ' on ' 1997.06.30t14:21-0500 ' R (n0 s0 v0)) ' >

There is a content setting in Internet Options for IE that prevents browsing of restricted Web sites, which are set by this parameter.

8, Page-enter, Page-exit (Entry and exit)

Usage: <meta http-equiv= "Page-enter" content= "Blendtrans (duration=0.5)" > <meta http-equiv= "Page-Exit" Content= "Blendtrans (duration=0.5)" >

Or: <meta http-equiv= "Page-enter" content= Revealtrans (duration=x, transition=y) "> <meta http-equiv=" Page-exit "content=" Revealtrans (duration=x, transition=y) ">

This is some special effects when the page is loaded and paged out. Note: Blendtrans is a kind of dynamic filter that produces an implicit effect. Another dynamic filter Revealtrans can also be used for page entry and exit Effects: Duration represents the duration of a filter effect (in seconds); Transitions filter type. Indicates which effect to use, with a value of 0-23.

9, IE6 (page builder)

Usage: <meta http-equiv= "IE6" content= "generator" >

Page Builder generator, IE6.

10, Content-script-type (script-related)

Usage: <meta http-equiv= "Content-script-type" content= "Text/javascript" >

Note: This is the specification of the recent consortium, indicating the type of script in the page.

Second, the name variable

Name is a description of the Web page, corresponding to content (Web page contents), so that search engine robot to find, classification (currently almost all search engines use online robots to automatically find meta values to classify the page).

11, Keywords (keywords)

Usage: <meta name= "Keywords" content= "keyword 1, keyword 2, keyword 3, keyword 4" >

A list of keywords provided for search engines. Note: The keywords between the English half-width comma "," separated. The number of keywords is best kept within 5, the key words and page content related.

12, Description (Introduction)

Usage: <meta name= "Description" content= "A brief introduction to your Web page" >

Description used to tell the search engine your site or the main content of the page, the description content to be related to the content of the page, words within 150 words.

13. Robots (Robot Guide)

Usage: <meta name= "content=" all| none| Index| Noindex| follow| Nofollow ">

Description: Robots are used to tell search bots which pages need to be indexed and which pages do not need to be indexed. The content parameters are all, none, Index, NOINDEX, follow, nofollow. The default is all.
   
All: The file will be retrieved and the link on the page can be queried; none: The file will not be retrieved and the link on the page cannot be queried (and "Noindex, no Follow"); Index: file will be retrieved; (Let Robot/spider log in) Follow: The link on the page can be queried; NOINDEX: The file will not be retrieved, but the link on the page can be queried (do not let Robot/spider login); nofollow: The file will not be retrieved and the link on the page can be queried. (Do not let Robot/spider follow this page of the link down to find).

14, Author (author)

Usage: <meta name= "Author" content= "Yi Heng, 5@163.com" >

The author or production group that labels the page. Content can be: You or your production group name or email.

15. Copyright

Usage: <meta name= "Copyright" content= "This page belongs to Yi Heng. All Rights Reserved icediary ">

Label the copyright.

16, Generator (editor)

Usage: <meta name= "generator" content= "pcdata|" Frontpage| " >

The description of the editor.

17, Revisit-after (Revisited)

Usage: <meta name= "Revisit-after" content= "7 Days" >

Generally used to guide the search engine to regain access to your site at intervals, generally use days.

Three, the meta commonly used examples:

<meta http-equiv=content-type content= "html charset=gb2312"
//Set page language to Simplified Chinese
<meta content= Keyword "name=" keywords
//set keyword
<meta content= "content description" name= "description"
//Set Description
<meta http-equiv= "Refresh" content= ""
//Set the page 30 seconds automatically refresh
<meta name= "robots" content= "index, follow"/>
Setting allows search engines to be searchable, page links can be queried
<meta name= "Googlebot" content= "index, follow"/>
For Google's search robot settings allow search engines can be retrieved, page links can be queried
<meta name= "Author" content= "Yi Heng"
//page author
<meta name= " Copyright "content=" all Rights Reserved icediary "
//Page Copyright
<meta name=" Revisit-after "content=" 1 days ">
//Set return visit to 1 days

Related Article

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.