<meta> name attribute - HTML | MDN

Social Card Preview

The MDN Web Docs logo, featuring a blue accent color, displayed on a solid black background.

<meta> name attribute - HTML | MDN

The name attribute of the <meta> element provides metadata in name-value pairs. When a <meta> element has a name attribute, a content attribute defines the corresponding value. The metadata is document-level metadata that applies to the whole page.

https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/meta/name

Meta tags

  • Title

    <meta> name attribute - HTML | MDNMDN Web DocsMDN logo

  • Description

    The name attribute of the <meta> element provides metadata in name-value pairs. When a <meta> element has a name attribute, a content attribute defines the corresponding value. The metadata is document-level metadata that applies to the whole page.

  • Theme color

    #ffffff

Open graph meta tags

Twitter meta tags

Resources

  • HTML

    <!-- HTML Meta Tags -->
    <title><meta> name attribute - HTML | MDNMDN Web DocsMDN logo</title>
    <meta name="description" content="The name attribute of the <meta> element provides metadata in name-value pairs.
    When a <meta> element has a name attribute, a content attribute defines the corresponding value.
    The metadata is document-level metadata that applies to the whole page.">
    <meta name="theme-color" content="#ffffff">
    
    <!-- Open Graph Meta Tags -->
    <meta property="og:title" content="<meta> name attribute - HTML | MDN">
    <meta property="og:description" content="The name attribute of the <meta> element provides metadata in name-value pairs.
    When a <meta> element has a name attribute, a content attribute defines the corresponding value.
    The metadata is document-level metadata that applies to the whole page.">
    <meta property="og:url" content="https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/meta/name">
    <meta property="og:site_name" content="MDN Web Docs">
    <meta property="og:locale" content="en_US">
    <meta property="og:type" content="website">
    <meta property="og:image" content="https://developer.mozilla.org/mdn-social-share.d893525a4fb5fb1f67a2.png">
    <meta property="og:image:alt" content="The MDN Web Docs logo, featuring a blue accent color, displayed on a solid black background.">
    <meta property="og:image:width" content="1920">
    <meta property="og:image:height" content="1080">
    
    <!-- Twitter Meta Tags -->
    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:creator" content="MozDevNet">
  • JSON

    {
      "title": "<meta> name attribute - HTML | MDNMDN Web DocsMDN logo",
      "description": "The name attribute of the <meta> element provides metadata in name-value pairs.\nWhen a <meta> element has a name attribute, a content attribute defines the corresponding value.\nThe metadata is document-level metadata that applies to the whole page.",
      "keywords": null,
      "themeColor": "#ffffff",
      "author": null,
      "generator": null,
      "publisher": null,
      "creator": null,
      "og": {
        "title": "<meta> name attribute - HTML | MDN",
        "description": "The name attribute of the <meta> element provides metadata in name-value pairs.\nWhen a <meta> element has a name attribute, a content attribute defines the corresponding value.\nThe metadata is document-level metadata that applies to the whole page.",
        "url": "https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/meta/name",
        "siteName": "MDN Web Docs",
        "locale": "en_US",
        "type": "website",
        "image": {
          "url": "https://developer.mozilla.org/mdn-social-share.d893525a4fb5fb1f67a2.png",
          "width": "1920",
          "height": "1080",
          "alt": "The MDN Web Docs logo, featuring a blue accent color, displayed on a solid black background."
        },
        "video": {
          "url": null,
          "type": null,
          "width": null,
          "height": null
        },
        "audio": {
          "url": null,
          "type": null
        }
      },
      "twitter": {
        "card": "summary_large_image",
        "site": null,
        "creator": "MozDevNet",
        "title": null,
        "description": null,
        "image": {
          "url": null,
          "width": null,
          "height": null,
          "alt": null
        },
        "player": {
          "url": null,
          "width": null,
          "height": null,
          "stream": null
        },
        "app": {
          "iphone": {
            "name": null,
            "id": null,
            "url": null
          },
          "ipad": {
            "name": null,
            "id": null,
            "url": null
          },
          "googleplay": {
            "name": null,
            "id": null,
            "url": null
          }
        }
      }
    }