Get to know MDN better
このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2015年7月.
HTMLMetaElement.name プロパティは HTMLMetaElement.content との組み合わせで使用し、文書のメタデータを名前と値の組で定義します。 name 属性はメタデータの名前を定義し、content 属性はその値を定義します。
文字列です。
次の例では、文書の最初の <meta> 要素を検索します。 name の値をコンソールに出力します。これは文書で keywords を指定するものです。
次の例は、新しい <meta> 要素を name 属性に author を設定して作成します。 content 属性には文書の著者を設定し、この要素を文書の <head> に追加します。
| HTML # dom-meta-name |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2025年7月25日 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.