YouTip LogoYouTip

Att Meta Http Equiv

# HTML http-equiv Attribute The `http-equiv` attribute of the `` tag provides an HTTP header for the information/value of the `content` attribute. It is essentially used to simulate an HTTP response header in the HTML document when the server-side configuration cannot be modified directly. --- ## Browser Support The `http-equiv` attribute is fully supported by all major modern web browsers: * Google Chrome * Mozilla Firefox * Safari * Microsoft Edge * Opera --- ## Definition and Usage The `http-equiv` attribute works in tandem with the `content` attribute. When a browser processes a `` tag with `http-equiv`, it interprets the instruction as if it had been sent directly in the actual HTTP response headers from the web server. ### Differences Between HTML 4.01 and HTML5 In HTML 4.01, declaring the character encoding of a document required using the `http-equiv` attribute. In HTML5, a much simpler, dedicated `charset` attribute was introduced. * **HTML 4.01 Syntax:** ```html ``` * **HTML5 Syntax:** ```html ``` --- ## Syntax ```html ``` --- ## Attribute Values | Value | Description | | :--- | :--- | | `content-type` | Specifies the character encoding for the document.

**Example:**
`` | | `default-style` | Specifies the preferred stylesheet to be used for the document.

**Example:**
``

**Note:** The value of the `content` attribute must match the value of the `title` attribute on a `` element or a `