From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/ja/web/html/element/head/index.html | 131 ++++++++++++++++++++++++++++++ 1 file changed, 131 insertions(+) create mode 100644 files/ja/web/html/element/head/index.html (limited to 'files/ja/web/html/element/head') diff --git a/files/ja/web/html/element/head/index.html b/files/ja/web/html/element/head/index.html new file mode 100644 index 0000000000..fcd05172e1 --- /dev/null +++ b/files/ja/web/html/element/head/index.html @@ -0,0 +1,131 @@ +--- +title: ': 文書メタデータ (ヘッダー) 要素' +slug: Web/HTML/Element/head +tags: + - Element + - HTML + - HTML 文書メタデータ + - 'HTML:メタデータコンテンツ' + - Reference + - Web + - ウェブ + - 要素 +translation_of: Web/HTML/Element/head +--- +
{{HTMLRef}}
+ +

HTML の <head> 要素は、文書に関する機械可読な情報 ({{glossary("metadata", "メタデータ")}})、たとえば題名スクリプトスタイルシートなどを含みます。

+ +
+

メモ: <head> は機械処理のための情報を保持するためのものであり、人間が読むためのものではありません。人間が読むための情報、例えば最上位のヘッダーや著者のリストのためのものは、 {{HTMLElement("header")}} 要素を参照してください。

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
コンテンツカテゴリなし
許可されている内容 +

文書が {{HTMLElement("iframe")}} の {{htmlattrxref("srcdoc", "iframe")}} 文書である場合、または題名情報がより上位のプロトコル (HTML メールの件名の行など) で使用される場合は、0個以上のメタデータコンテンツ。

+ +

他の場合は正確に1つの {{HTMLElement("title")}} 要素を含む、1個以上のメタデータコンテンツ。

+
タグの省略<head> 要素内で最初に存在するものが要素である場合、開始タグを省略可能。
+ <head> 要素に続く最初のものが空白文字やコメントでない場合、終了タグが省略可能。
許可されている親要素{{HTMLElement("html")}} 要素の最初の子要素として配置可能。
許可されている ARIA ロールなし
DOM インターフェイス{{domxref("HTMLHeadElement")}}
+ +

属性

+ +

この要素にはグローバル属性があります。

+ +
+
{{htmlattrdef("profile")}} {{obsolete_inline}}
+
1つ以上のメタデータプロファイルの {{glossary("URI")}} で、{{Glossary("whitespace", "ホワイトスペース")}}区切りです。
+
+ +

+ +
<!doctype html>
+<html>
+  <head>
+    <title>Document title</title>
+  </head>
+</html>
+
+ +

メモ

+ +

HTML5 互換のブラウザーでは、タグが省略されていても <head> 要素を自動的に生成します。この自動生成は、過去のブラウザーでは保証されていません

+ +

仕様書

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
仕様書状態備考
{{SpecName('HTML WHATWG', 'semantics.html#the-head-element', '<head>')}}{{Spec2('HTML WHATWG')}}最新のスナップショットから変更なし
{{SpecName('HTML5 W3C', 'document-metadata.html#the-head-element', '<head>')}}{{Spec2('HTML5 W3C')}}profile を廃止
{{SpecName('HTML4.01', 'struct/global.html#h-7.4.1', '<head>')}}{{Spec2('HTML4.01')}} 
+ +

ブラウザーの互換性

+ + + +

{{Compat("html.elements.head")}}

+ +

関連情報

+ + -- cgit v1.2.3-54-g00ecf