Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. HTML
  3. Reference
  4. Attributes
  5. content

HTML attribute: content

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since ⁨July 2015⁩.

Thecontent attribute specifies the value of a metadata name defined by the<meta>name attribute.It takes a string as its value, and the expected syntax varies depending on thename value used.

Value

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

Examples

Setting a document meta description

The following<meta> tag usesname=description to set a "meta description" for a document.Thecontent 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 byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp