HTTP-equiv Directives

HTML meta http-equiv="content-type"

Build a form with the HTML form generator

Legacy HTML encoding declaration. Use the shorter meta charset=utf-8 form for new documents and ensure the HTTP encoding agrees; the encoding declaration must appear early in the document.

Formal Syntax & Structure

html syntaxhtml
<meta http-equiv="content-type" content="text/html; charset=utf-8">

Parameters & Attributes

NameTypeDescription
http-equivpragma keywordUse content-type.
contentdirective-specific valueExample: text/html; charset=utf-8.

Working Example

Example Snippethtml
<!doctype html><html lang="en">  <head>    <title>Example</title>    <meta http-equiv="content-type" content="text/html; charset=utf-8">  </head>  <body>    <p>Example document</p>  </body></html>
HTML Reference