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.
An http-equiv attribute on a meta element.
This setting refreshes the page every 30 seconds.
<meta http-equiv="refresh" content="30">
meta = metadata
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.
<meta http-equiv="refresh | default-style | content-type | content-security-policy">
| 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. |
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 |
Back to <meta>