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/hr/index.html | 132 ++++++++++++++++++++++++++++++++ 1 file changed, 132 insertions(+) create mode 100644 files/ja/web/html/element/hr/index.html (limited to 'files/ja/web/html/element/hr') diff --git a/files/ja/web/html/element/hr/index.html b/files/ja/web/html/element/hr/index.html new file mode 100644 index 0000000000..929cb187a9 --- /dev/null +++ b/files/ja/web/html/element/hr/index.html @@ -0,0 +1,132 @@ +--- +title: '
: 主題分割 (水平線) 要素' +slug: Web/HTML/Element/hr +tags: + - HTML + - HTML コンテンツグループ化 + - 'HTML:フローコンテンツ' + - Reference + - ウェブ + - 要素 +translation_of: Web/HTML/Element/hr +--- +
{{HTMLRef}}
+ +

HTML の <hr> 要素は、段落レベルの要素間において、テーマの意味的な区切りを表します。例えば、話の場面の切り替えや、節内での話題の転換などです。

+ +
{{EmbedInteractiveExample("pages/tabbed/hr.html", "tabbed-shorter")}}
+ + + +

以前はこれは水平の区切り線として定義されていました。現在でもブラウザーでは水平線として表示されますが、この要素は表示論的な用語ではなく意味論的な用語で定義されましたので、水平線を引きたいのであれば、適切な CSS を使用して行うようにしてください。

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + +
コンテンツカテゴリーフローコンテンツ
許可されている内容なし。これは{{Glossary("empty element", "空要素")}}です。
タグの省略開始タグは必須。終了タグを記述してはならない。
許可されている親要素フローコンテンツを受け入れるすべての要素
許可されている ARIA ロール{{ARIARole("presentation")}}
DOM インターフェイス{{domxref("HTMLHRElement")}}
+ +

属性

+ +

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

+ +
+
{{htmlattrdef("align")}} {{deprecated_inline}}
+
区切り線の配置を指定します。初期値は left です。
+
{{htmlattrdef("color")}} {{Non-standard_inline}}
+
区切り線の色を色名、または16進数で指定します。
+
{{htmlattrdef("noshade")}} {{deprecated_inline}}
+
網掛けをしないように指定します。
+
{{htmlattrdef("size")}} {{deprecated_inline}}
+
区切り線の高さをピクセル数で指定します。
+
{{htmlattrdef("width")}} {{deprecated_inline}}
+
区切り線の幅をピクセル数、あるいはパーセントで指定します。
+
+ +

+ +

HTML

+ +
<p>
+  This is the first paragraph of text.
+  This is the first paragraph of text.
+  This is the first paragraph of text.
+  This is the first paragraph of text.
+</p>
+
+<hr>
+
+<p>
+  This is the second paragraph of text.
+  This is the second paragraph of text.
+  This is the second paragraph of text.
+  This is the second paragraph of text.
+</p>
+ +

結果

+ +

{{EmbedLiveSample("Example")}}

+ +

仕様書

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
仕様書状態備考
{{SpecName('HTML WHATWG', 'semantics.html#the-hr-element', '<hr>')}}{{Spec2('HTML WHATWG')}}<hr> 要素の定義
{{SpecName('HTML5 W3C', 'grouping-content.html#the-hr-element', '<hr>')}}{{Spec2('HTML5 W3C')}}
{{SpecName('HTML4.01', 'present/graphics.html#h-15.3', '<hr>')}}{{Spec2('HTML4.01')}}align, noshade, size, width 属性を非推奨にする
+ +

ブラウザーの互換性

+ + + +

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

+ +

関連情報

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