HTML and CSS Reference
In-Depth Information
charset="
character set
character set
"
Not in HTML 4.01
.Canbeusedwiththe
meta
elementasasubstituteforthe
http-equiv
method for declaring the character set of the document.
content="
text
text
"
Required
. Specifies the value of the
meta
element property and is always used in con-
junction with
name
,
http-equiv
, or
itemprop
.
http-equiv="content-language|content-type|default-style|refresh|set-cook-
ie"
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
attrib-
ute (in place of the
name
attribute).
name="
text
text
"
Specifies a name for the
meta
information property. Some defined names include
application-name
,
author
,
description
,
generator
, and
keywords
.
Example (HTML)
<meta charset=
"UTF-8"
>
<meta name=
"author"
content=
"Jennifer Robbins"
>
<meta http-equiv=
"content-type"
content=
"text/html;
charset=UTF-8"
>
<meta http-equiv=
"refresh"
content=
"15"
>