HTML <meta> http-equiv Attribute

❮ HTML <meta> tag

Example

<head>
  <meta http-equiv="refresh" content="3">
</head>

Meaning

The http-equiv attribute binds the meta-information in the content attribute to an equivalent HTTP response header.

Note: If this attribute is present, the name attribute should not be used.


Standard Syntax

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



Browser Support




Status







Attribute Values

Value Description
content-security-policy Allows page authors to define a content policy for the current page.
content-type Declares the MIME type and character encoding of the document.
default-style Sets the name of the default alternative style sheet set.
x-ua-compatible If specified, the content attribute must have the value "IE=edge". User agents are required to ignore this pragma.
refresh Acts as timed redirect.
  • The number of seconds until the page should be reloaded - only if the content attribute contains a positive integer.
  • The number of seconds until the page should redirect to another - only if the content attribute contains a positive integer followed by the string ';url=', and a valid URL.
    Example: <meta http-equiv="refresh" content="2;url=https://www.google.com">
❮ HTML <meta> tag