meta ElementThe meta element is declared by the XHTML 1.1 Metainformation Module
This is the only element in this Module.
The meta element comes in two distinct guises, one where the
name attribute is used and one where the http-equiv attribute
is used.
name AttributeThe name attribute can be used to define the name
of a parameter which gives information about the document.
The value of this parameter is then given in the content
attribute. The scheme attribute is used if it is necessary to
provide clarification as to the format of the data given in the content attribute
and, if required, the xml:lang attribute can be used to specify the language of
this data.
For example:
There are no prescribed legal values for name, content or scheme attributes,
but it is recommended (but not widely practised) to define the permitted values for name
(along with expected content and any possible scheme
interpretations) in a metadata profile, which is then specified in the profile attribute
of the document's head element.
http-equiv AttributeUsing the http-equiv attribute allows the
meta element to mimic a particular
HTTP header
from within the document itself. It should be as though
that particular HTTP header was sent by the server itself.
For example, the following code would mimic the header Content-Style-Type: text/css
<meta http-equiv="Content-Style-Type" content="text/css" />
This can be useful to specify information within a document which is not being served by a web server.
See also the X-UA-Compatible HTTP header.
The content attribute is #REQUIRED on the meta element.
meta element are listed below:content [ type CDATA - #REQUIRED ]http-equiv [ type NMTOKEN ]name attribute to state that the property value in the content attribute mimics the HTTP header specified in this attributename [ type NMTOKEN ]scheme [ type CDATA ]contentmeta element are listed below:dir [ type Enumeration (ltr | rtl) ], from the Bi-directional Text Modulexml:lang [ type LanguageCode ]meta element is:
EMPTY
See Content Model & Nesting for information about Content Model syntax and Nesting Groups.
metaThis element is empty and may have no children.
metahead