Dofactory.com
Dofactory.com
Earn income with your HTML skills
Sign up and we'll send you the best freelance opportunities straight to your inbox.
We're building the largest freelancing marketplace for people like you.
By adding your name & email you agree to our terms, privacy and cookie policies.

HTML <meta> http-equiv Attribute

The http-equiv attribute on a <meta> tag specifies information that is equivalent to an HTTP header value.

The value is specified 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>

Last updated on Sep 30, 2023

Earn income with your HTML skills
Sign up and we'll send you the best freelance opportunities straight to your inbox.
We're building the largest freelancing marketplace for people like you.
By adding your name & email you agree to our terms, privacy and cookie policies.

Guides