CKTIS / HTML
http-equiv — meta pragma directives
The http-equiv attribute on meta selects a pragma directive, while content supplies its value. It is not a general mechanism for setting HTTP response headers.
Version: WHATWG HTML Living Standard; index snapshot date recorded separately
Syntax
<meta http-equiv="directive" content="value">http-equiv is an enumerated attribute on meta that selects a pragma directive. It requires content; do not combine it with name, charset, or itemprop. Place declarations in head. The name is historical: these directives are not general equivalents of HTTP headers.
content-type declares encoding using text/html; charset=utf-8; the charset attribute is a simpler alternative. Do not use both declarations together. default-style names the default CSS style sheet set, while refresh schedules reloading or redirection. Automatic navigation can disrupt users.
content-security-policy enforces CSP, but requires placement directly inside head, excludes report-uri, frame-ancestors, and sandbox, and does not guarantee blocking resources fetched earlier. Do not treat this form as a complete replacement for the CSP header.
x-ua-compatible requires IE=edge, but the standard requires ignoring this directive. content-language is non-conforming—use lang. An empty value is also non-conforming and ineffective. Do not repeat directives representing the same state within a document.
Examples
<!doctype html>
<html lang="pl">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>UTF-8</title>
</head>
<body>
<p>Zażółć gęślą jaźń.</p>
</body>
</html>Result
Zażółć gęślą jaźń.
The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.