コンテンツにスキップ

meta要素

出典: フリー百科事典『ウィキペディア(Wikipedia)』

metaHTML[1]HTMLMETA element[2]

HTMLmeta[3][4]

name

http-equiv

charset

itemprop

4

property
RDFaOpen Graph Protocol使

name[]


namenamecontentHTMLWHATWG WikiMetaExtensions


<META name="Author" lang="fr" content="Arnaud Le Hors">

HTTP[5][6]

[]


HTMLname[7][8]

application-name

author

description

generator

keywords

referrer

theme-color

http-equiv[]


http-equivHTML使HTTPHTML[9][10]
<meta http-equiv="Content-Language" content="ja">

charset属性[編集]

charset属性は、対象のHTML文書における文字コードの指定に用いられる[11][12]。以下はUTF-8を指定する例である。

<meta charset="UTF-8">

HTML 4.01までは、charset属性は規定されておらず、文字コードの指定にはhttp-equiv属性を以下のように使用していた。

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

charsetcharsetHTML[13][14]

itemprop属性[編集]

脚注[編集]



(一)^ HTML 4.01 Specification. www.w3.org. 201967

(二)^ The global structure of an HTML document. www.w3.org. 201967

(三)^ 4.2.5 The meta element (). HTML Standard. 201977 Exactly one of the name, http-equiv, charset, and itemprop attributes must be specified.

(四)^ 4.2.5 meta. HTML Standard . 201977 namehttp-equivcharsetitemprop1

(五)^ : . MDN Web Docs. 201967

(六)^ Google  - Search Console . support.google.com. 201967

(七)^ HTML: The Living Standard Developer's Edition 4.2.5.1 Standard metadata names. WHATWG (20191019). 20191020

(八)^ HTML Standard  4.2.5.1  (20191018). 20191020

(九)^ Sasaki, Makoto (2014130). content-languagemetaIT. wa3.i-3-i.info. 2024530

(十)^ http-equiv - IT. IT e-Words. 2024530

(11)^ 2019-08-14. HTML Standard . 4.2.5 meta. 2019817 charset使

(12)^ 4.2.5 The meta element. HTML Standard (2019814). 2019817 The charset attribute specifies the character encoding used by the document. This is a character encoding declaration.

(13)^ vantguarde (2008123). HTML5FPWDmetacharset. web:g. 20123142019817

(14)^ Pilgrim, Mark (2009213). The Road to HTML 5: character encoding. The WHATWG Blog. 2019817

関連項目[編集]

外部リンク[編集]