| <META> | NN all IE all HTML all |
 |
<META>
| HTML End Tag: Forbidden |
A meta element conveys hidden information about
the document. Some browsers respond to this element to derive header
information that may be important to the document but is not sent by
the server in response to the request for the document. The element
is also used to embed document information that some search engines
use for indexing and categorizing documents on the World Wide Web.
More than one meta element may be included in a
document, and all meta elements belong nested
inside the head element. The specific purpose of
each meta element is defined by its attributes.
Typically, a meta element reduces to a name/value
pair that is of use to either the server or the client. For example,
most browsers recognize attribute settings that force the page to
reload (or redirect to another page) after a timed delay. This would
be useful in a page whose content is updated minute-by-minute,
because the browser keeps reloading the latest page as often as
indicated in the meta element.
Several other elements and attributes in HTML 4 contain the same kind
of metadata that might otherwise be located in
meta elements. Use the avenue that is best suited
to your intended server and browser environments. See also the
address, del,
ins, link, and
title elements, as well as the
profile attribute of the head
element.
Much mythology surrounds meta element usage. Some
attribute values affect only some browsers (controlling the browser
cache, for example), and not all search engine bots respond to
meta tag attribute values the same way (if at
all). At the same time, commonly-used powers, such as
refresh, are frowned upon by the standards. There
are no mandated standards for acceptable values, but the W3C
validators for HTML 4 and XHTML point toward acceptance of the
character set value shown in the example below.
|
| |
| Example |
| |
<HEAD profile="http://www.giantco.com/profiles/common">
<META name="Author" content="Jane Smith">
<META name="keywords" content="benefits,insurance,plan">
<META http-equiv="refresh"
content="1;URL=http://www.giantco.com/truindex.html">
<META http-equiv="Content-Type" content="text/html;
charset=ISO-8859-5">
</HEAD>
|
| |
| Element-Specific Attributes |
| |
| content | http-equiv | name | scheme |
|
| |
| Element-Specific Event Handler Attributes |
None.
|