HTML attribute: content - HTML | MDN

Value

The types of values that a content attribute accepts depends on the name value. For details on specific formats and types, see the <meta> name attribute page.

Examples

Setting a document meta description

The following <meta> tag uses name=description to set a "meta description" for a document. The content attribute provides the value for the metadata:

html

<meta
  name="description"
  content="The HTML reference describes all elements and attributes of HTML, including global attributes that apply to all elements." />

Specifications

Specification
HTML
# attr-meta-content

Browser compatibility

See also

  • <meta> name attribute

Help improve MDN

Learn how to contribute

This page was last modified on by MDN contributors.