24 十一月, 2004
Meta tag in html header
Meta tag 术语解释
置于网页标题部位的HTML标识,上面的信息不会显示在网页本身。使用元标识的原初目的提供精确地网页描述内容及与网页相关地关键词帮助搜索引擎正确地索引到网页。但是现在许多网站管理员为了得到某些利益,滥用元标识,迫使搜索引擎开始忽视元标识的作用。现在流行的可以影响搜索引擎排名的元标识主要是关键词元标识和描述元标识。关键词元标识集中了一系列与网站相关的字词,搜索引擎利用它对网页作以分类。描述元标识用来描述文档,显示在搜索引擎结果中。Robots元标识用于控制搜索引擎索引网页过程中的某些方面。HTTP-EQUIV 元标识用于发布服务器的HTTP命令。最常见的是HTTP 更新命令,其次是阻止服务器存储网页的NOCACHIE命令。其他有用的标识是CHAR SET标识,用于描述文档语言和字符设置。Author 元标识和Generator 元标识(用于生成网页的软件)。
- Description Tag
<META name="description" content="blah, blah...">
description meta,支持这个tag的搜索引擎会根据content的内容显示此页的说明 (GOOGLE忽略此tag)
- Keywords Tag
<META name="keywords" content="blah, blah...">
很多搜索引擎已经不再支持这个tag了
- Refresh
<META http-equiv="Refresh" content="delay_seconds">
<META http-equiv="Refresh" content="delay_seconds;newurl">
Refresh current page (and redirect to newurl) after delay_seconds
- Charset Tag
<META http-equiv="Charset" content="character_decoding">
valid character_decoding: iso-8859-1, gb2312, utf-8,etc.
Usually we use Content-Type Tag to set Charset
- Content-Type Tag
<META http-equiv="Content-Type" content="type; charset=set">
for example: <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- Expires Tag
<META http-equiv="Expires" content="expires_time">
- Robots Tag
<META name="Robots" content="noindex">
to disallow indexing by robots 告诉搜索引擎不要处理此页面
- Author and Copyright Tag
<META name="Author" content="UTBlog">
<META name="Copyright" content="Dec 2004">
| <meta /> | |
- description
- The <meta /> tag supplies additional information about a document.
- viewable in
- Netscape 2, 3, 4, 6, 7
- Mozilla 1
- Internet Explorer 2, 3, 4, 5, 6
- Opera 3, 6
- WebTV/MSN TV
- AvantGo Palm OS
- AvantGo Windows CE
- HTML 3.2, 4.0
- XHTML 1.0
XHTML Meta Information Module - attributes
- content (required)
(HTML 4.0) This is the property's value. - dir (optional)
(HTML 4.0) [LTR|RTL] Defines the directionality of text without a pre-defined direction (per-UNICODE). LTR is "left to right" and RTL is "right to left". - name (optional)
(HTML 4.0) Identifies an element or a fragment within an HTML document. These named fragments become the potential target of a link. This attribute is included in a deprecated module in XHTML 1.0 - and if you use it, you must use the id attribute as well. Furthermore, both the name and the id attributes must have the same value. - http-equiv (optional)
(HTML 4.0) This is used in place of the name attribute. It is used by HTTP servers to gather information about HTTP response headers. - lang (optional)
(HTML 4.0) Defines the language of the linked document.The language code must comply with RFC 1766. - scheme (optional)
(HTML 4.0) This specifies a scheme to interpret the property's value. - end tag
- None. <meta /> is a singleton tag.
- contents
- The following tags are valid within the <meta /> tag:
None. (Usually used to define information such as the author of the document.) - valid context
- The <meta /> tag is valid within the following tags:
head - examples
- Define the description of the page for search engines.
<meta name="description" content="This is the description of the web page."> - Include keywords on which search engines will search.
<meta name="keywords" content="keywords, separated, by commas, they can, be, words or phrases"> - Define when the content on the page expires (a MIME header).
<meta http-equiv="expires" content="thu, 16 DEC 1999 00:04:00 PST"> - Force the current page to reload to a new page after 10 seconds.
<meta http-equiv="refresh" content="10;url=new URL"> - special notes
- Use meta tags to make your web pages more accessible to search engines and web spiders. However, you should be careful to keep the keywords and description concise. Many search engines have "spamming" rules, allowing no more than a small amount of characters or keywords.
- more information
- Basic Meta Tags
If you have no other meta tags on your site, you should have these. - Magic with Meta Tags
Meta tags are an easy way to get more notice from some search engines. Find out how to use them. - Meta Refresh Tag
Move your readers from one page to another automatically. - Meta Tag Generator
Here is a meta tag generator created by your About Guide to HTML, Jennifer Kyrnin. It will even generate page refresh tags. - Meta Tag Links
Many search engines use meta tags to rank pages. But there is more to meta than just category, description, and keywords. These links will help you improve your page rankings and get the most out of meta tags.



