Easy Tutorial
❮ Av Prop Paused Att Audio Controls ❯

HTML <meta> http-equiv Attribute

HTML <meta> Tag

Example

Refresh the document every 30 seconds:


Browser Support

All major browsers support the http-equiv attribute.


Definition and Usage

The http-equiv attribute provides an HTTP header for the information/value of the content attribute.

The http-equiv attribute can be used to simulate an HTTP response header.


Differences Between HTML 4.01 and HTML5

Using http-equiv is no longer the only way to specify the character set of an HTML document:


Syntax

Attribute Values

Value Description
content-type Specifies the character encoding for the document. Example: <meta http-equiv="content-type" content="text/html; charset=UTF-8">
default-style Specifies the preferred style sheet to be used. Example: <meta http-equiv="default-style" content="the document's preferred stylesheet"> Note: The value of the content attribute must match the title attribute of a link element in the same document, or the title attribute of a style element in the same document.
refresh Defines the interval for the document to auto-refresh. Example: <meta http-equiv="refresh" content="300"> Note: The "refresh" value should be used with caution as it can make the page uncontrollable by the user. Using "refresh" in the W3C's Web Content Accessibility Guidelines can lead to failure.
❮ Av Prop Paused Att Audio Controls ❯