flyingleaf's blog

象外行一样思考,象专家一样实践。

HTML META 标签详解

coolbean | 05 八月, 2007 13:31

<META>

DescriptionAttributesExamplesFrontpage 2000

Description:

Metatags are a way for you to define your web page and web site to the outside world. You can declare the title, keywords and description, which help your placement in search engines. In addition, you can specify who owns the copyright, how often the page is to be visited by search engines and many other useful pieces of information. (See Meta-Tags page for our Metatag creation form to easily create your own Metatags for your web site)

There are two type of Metatags.

HTTP-EQUIVThese tags are the equivalent of http headers. When you click on a hyperlink which beings with http:// you are asking that a page be transferred to your browser using the http protocol. What happens is the following.
  1. The web server makes sure the page exists
  2. It sends back an http header block which contains information about the page
  3. It sends the page itself.

What HTTP-EQUIV Metatags do is define additional information to be sent to the browser in the http header. This gives the web site creator additional control over this data.

NAMEThe NAME attribute is used to define information which is to be referenced outside of the document. This includes data passed to search engines and directories, spiders and other entities.

Metatags must be placed between the <HEAD> and </HEAD> tags, before the <BODY> tag. On framed pages, be sure and include the Metatags on the frameset page and the framed pages.

A special note about legality regarding Metatags. Some people have "borrowed" someone else's Metatags and have been successfully sued in the courts. In general, this seems to have involved the inclusion of trademarked keywords, but in theory it would be possible to copyright a set of keywords. It is best to be sure and create your own descriptions and keywords.

 (查看全文)

 
Accessible and Valid XHTML 1.0 Strict and CSS
Powered by LifeType - Design by BalearWeb