HTML <meta> http-equiv Attribute

The http-equiv attribute on a <meta> tag specifies information that is equivalent to an HTTP header value. The data is provided as a value in the content attribute.

Example

#

An http-equiv attribute on a meta element.
This setting refreshes the page every 30 seconds.

<meta http-equiv="refresh" content="30">
meta = metadata

Using http-equiv

The http-equiv attribute specifies that the <meta> tag value is equivalent to an HTTP header setting.

The actual value is provided in the <meta> tag's content attribute.

This attribute effectively simulates an HTTP header value.


Syntax


<meta http-equiv="refresh | default-style | content-type | content-security-policy">

Values

#

Value Description
refresh Specifies a time interval in seconds for the document to refresh.
default-style Specifies the name of the default CSS set.
content-type Specifies the media type, formerly MIME type, and character encoding of the page.
content-security-policy Specifies the current page's content policy.

Browser support

Here is when http-equiv support started for each browser:

Chrome
1.0 Sep 2008
Firefox
1.0 Sep 2002
IE/Edge
1.0 Aug 1995
Opera
1.0 Jan 2006
Safari
1.0 Jan 2003

You may also like

 Back to <meta>
Guides