Meta tags

From JumbaWiki

Jump to: navigation, search

Meta tags are HTML elements used to describe the structure of a webpage and used to place keywords and information for search engines to display on their search results, and also has other uses. The tags are placed between the <head></head> tags of the page.

Contents

Metatags for search engines

Keywords

Keywords in this tag can help improve search engine search results if terms match the ones in this list. The ranking is not alterred if the keywords in this meta tag does not relate to the content of the page. Keywords are seperated by commas.

<meta name="keywords" content="keyword, key keywords, etc" />

Description

This is a description that would be used to describe the website or page when listed by a search engine. Keywords in this description are also used to improve search engine ranking. The description is also suggested to closely match the keywords used to avoid search engines ranking the site differently.

<meta name="description" content="Description to appear on search engine search results" />

HTTP headers

Refresh

The tag can be used to refresh a page at a set interval. This can be useful if you want a page to regularly update, or to test cyclic scripts.

<meta http-equiv="refresh" content="10; url=http://www.mydomain.com/mypage.htm" />

Redirect

The refresh tag can also be used if the domain or page no longer exists or has moved. It will automatically redirect to the page specified in the url attribution. It is suggested that a server-side redirect might be a better solution as this tag sometimes is not recognised by older browsers. See Redirect for more information.

<meta http-equiv="refresh" content="0; url=http://www.jumba.com.au" />

Revised

This tag is used to manually note when the page was last revised.

<meta name="revised" content="Happy New Year: 1/1/2007" />

Expires

This tag can be used to tell the browser when to over-ride the browser cache.

<META http-equiv="Expires" content="Tue, 20 Aug 1996 14:25:27 GMT">

Default information

Content type

This tag can be used to describe a pages content-type

<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-5">

Author profile

These tags can be used to give copyright and authorship information

<META name="author" content="John Doe">
<META name="copyright" content="© 2006 Acme Corp.">

See also

External links

Personal tools
Australian Photography | Unique Views of Reality | Daedalus