The meta tag is not a required tag for your website.

  • It is only used in the <head> section.
  • It allows a search engine find your documents.
Example:

<head>
<meta name="keywords" content="coffee, starbucks, starbucks prices, tao tea">
</head>

This example shows the search engine what keywords are in your document for the viewers to search for.

There is also a meta description tag.

Example:

<head>
<meta name="description" content="Everything you would want to know about Starbucks Coffee, from prices to history.">
</head>

webdeveloper.com

The other possible attribute is <meta http-equiv="name" CONTENT="content>.

meta tags with an http-equiv attribute are equivalent to http headers. Typically, they control the action of browsers, and may be used to refine the information provided by the actual headers. Tags using this form should have an equivalent effect when specified as an http header, and in some servers may be translated to actual http headers automatically or by a pre-processing tool.

Note: While http-equiv meta tag appears to work properly with Netscape Navigator, other browsers may ignore them, and they are ignored by Web proxies, which are becoming more widespread. Use of the equivalent http header, as supported by e.g. Apache server, is more reliable and is recommended wherever possible.


Page Information

  • 11 months ago [history]
  • View page source
  • You're not logged in
  • No tags yet learn more

Wiki Information

Recent PBwiki Blog Posts