Name
meta — <meta />
Provides additional information about the document. It
should be placed within the head
of the document. It is commonly
used to identify the media type and character set for a document.
It can also provide keywords, author information, descriptions,
and other metadata.
Attributes
Internationalization (lang
, xml:lang
, dir
)
content="
text
"
Required. Specifies the value of the
meta
element property and is always used in conjunction withname
orhttp-equiv
.http-equiv="
text
"
The specified information is treated as though it were included in the HTTP header that the server sends ahead of the document. It is used in conjunction with the
content
attribute (in place of thename
attribute).id="
text
"
XHTML only. Assigns a unique identifying name to the element.
name="
text
"
Specifies a name for the
meta
information property.scheme="
text
"
Provides additional information for the interpretation of metadata.
Examples
<meta name=
"copyright"content=
"2006, O'Reilly Media"/>
<meta http-equiv=
"content-type"content=
"text/html; charset=UTF-8"/>
<meta http-equiv=
"refresh"content=
"15"/>
Get HTML and XHTML Pocket Reference, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.