Module meta

Module meta 

Source
Expand description

Attribute names for meta (<meta>) elements.

§Purpose

The <meta> element represents metadata that cannot be represented by other HTML meta elements, such as character encoding, viewport settings, and document metadata.

§Common Attributes

  • charset: Character encoding declaration (e.g., “utf-8”)
  • name: Metadata name (e.g., “viewport”, “description”, “keywords”)
  • content: Metadata value (used with name or http-equiv)
  • http-equiv: HTTP header to emulate

§Example

<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Page description for SEO">
<meta name="keywords" content="html, css, javascript">
<meta http-equiv="X-UA-Compatible" content="IE=edge">

§WHATWG Specification

Constants§

CHARSET
The charset attribute.
CONTENT
The content attribute.
HTTPEQUIV
The http-equiv attribute.
NAME
The name attribute.