HTML5

タグ(要素)

HR

  編集:2022.06.24 by T.A.

mdn

水平線の表示。

この要素を使用できる文脈

フロー内容が期待される場所。

内容モデル

なし

text/htmlにおけるタグ省略

終了タグなし。

内容属性
解説

たとえば、物語の場面変化や、参考書のセクション内で別の話題に移行するなど、段落レベルのテーマの区切りを表す。

HR 要素は、文書のアウトラインに影響を与えない。

ピーター・F・ハミルトン作の Pandora's Star からの以下の抜粋は、シーンの変化の前にある 2 つの段落とそれに続く段落を示す。第 2 段落と第 3 段落との間の 1 つの中央にある星を含むギャップによって書籍で表現されるシーンの変化は、ここに HR 要素を使用することで表される。

<P>Dudley was ninety-two, in his second life, and fast approaching
time for another rejuvenation. Despite his body having the physical
age of a standard fifty-year-old, the prospect of a long degrading
campaign within academia was one he regarded with dread. For a
supposedly advanced civilization, the Intersolar Commonwealth could be
appallingly backward at times, not to mention cruel.</P>
<P><I>Maybe it won't be that bad</I>, he told himself. The lie was
comforting enough to get him through the rest of the night's
shift.</P>
<HR>
<P>The Carlton AllLander drove Dudley home just after dawn. Like the
astronomer, the vehicle was old and worn, but perfectly capable of
doing its job. It had a cheap diesel engine, common enough on a
semi-frontier world like Gralmond, although its drive array was a
thoroughly modern photoneural processor. With its high suspension and
deep-tread tyres it could plough along the dirt track to the
observatory in all weather and seasons, including the metre-deep snow
of Gralmond's winters.</P>

テスト
HTML:

ここに表示
HTML:

ここに表示
スクリプト:


スクリプト:



表示内容:
表示内容: