HTML http-equiv attribute


The purpose of the HTML http-equiv attribute is to provide information for HTTP response message headers (for example content or application type).

Supported elements

HTML http-equiv attribute supports meta element.


<meta http-equiv="value" ... / >

Type of value

Name which must begin with a letter ([A-Za-z]) and may be followed by any number of letters, digits ([0-9]), hyphens ("-"), underscores ("_"), colons (":"), and periods (".").


Value Description
Allow Specifies the methods supported by the server.
Content-Encoding Specifies additional content-encoding for the document.
Content-Length Specifies the size of the document (in bytes).
Content-Type Specifies the MIME type of the document (like text/html).
Date Specifies when the document was created.
Expires Specifies when the document will be considered obsolete.
Last-Modified Specifies when the document was last modified.
Location Specifies an absolute URL for the document.
Refresh Specifies a time interval for the document to refresh itself.
Set-Cookie Specifies a cookie-value.
WWW-Authenticate Specifies authentication rules returned by the server.

Default value

There is no default value of HTML http-equiv attribute.

Supported doctypes

HTML 4.01 strict, HTML 4.01 transitional, HTML 4.01 frameset.

Usage of HTML http-equiv attribute

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />

Previous: HTML hreflang attribute
Next: HTML ismap attribute