削除された内容 追加された内容
用途別の属性の一覧を追加
charset属性の記述を追加。http-equiv属性とitemprop属性を節スタブとして追加。
23行目:
 
ここに記載される、メタデータの「名前、値」の属性セットは、各[[ユーザーエージェント|HTTPユーザーエージェント]](つまりは[[ウェブブラウザ|ブラウザー]]や[[クロウラー]])によってそれぞれ解釈され、その対応度は各ユーザーエージェントによって異なる<ref>{{Cite web|title=: 文書レベルメタデータ要素|url=https://developer.mozilla.org/ja/docs/Web/HTML/Element/meta|website=MDN Web Docs|accessdate=2019-06-07|language=ja}}</ref>。また、ユーザーエージェントにサポートされないメタタグは単に無視される<ref>{{Cite web|title=Google がサポートしているメタタグ - Search Console ヘルプ|url=https://support.google.com/webmasters/answer/79812?hl=ja|website=support.google.com|accessdate=2019-06-07}}</ref>。
 
== http-equiv属性 ==
{{節スタブ}}
 
== charset属性 ==
charset属性は、対象のHTML文書における[[文字コード]]の指定に用いられる<ref>{{Cite web |author=2019-08-14 |url=https://momdo.github.io/html/semantics.html#the-meta-element |title=HTML Standard 日本語訳 |website=4.2.5 meta要素 |accessdate=2019-08-17 |quote=charset属性は、文書で使用される文字エンコーディングを指定する。これは、文字エンコーディング宣言である。}}</ref><ref>{{Cite web |date=2019-08-14 |url=https://html.spec.whatwg.org/multipage/semantics.html#the-meta-element |title=4.2.5 The meta element |website=HTML Standard |accessdate=2019-08-17 |quote=The charset attribute specifies the character encoding used by the document. This is a character encoding declaration.}}</ref>。以下はUTF-8を指定する例である。
 
<source lang="html">
<meta charset="UTF-8">
</source>
 
HTML 4.01までは、charset属性は規定されておらず、文字コードの指定には<code>http-equiv</code>属性を以下のように使用していた。
 
<source lang="html">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</source>
 
しかし、その一方でこれを正しく記述できていないウェブページのため、ウェブブラウザは当時からcharset属性を認識するようになっていた。その結果、正式にcharset属性がHTML標準に規定されることとなった<ref>{{Cite web |author=vantguarde |date=2008-01-23 |url=https://web.g.hatena.ne.jp/vantguarde/20080123/1201089589 |title=HTML5のFPWDとmeta要素のcharset属性 |website=web:g |accessdate=2019-08-17}}</ref><ref>{{Cite web |first=Mark |last=Pilgrim |date=2009-02-13 |url=https://blog.whatwg.org/the-road-to-html-5-character-encoding |title=The Road to HTML 5: character encoding |website=The WHATWG Blog |accessdate=2019-08-17}}</ref>。
 
== itemprop属性 ==
{{節スタブ}}
 
== 出典 ==