Html-hr-tag

提供:Dev Guides
移動先:案内検索

HTML-<hr>タグ

説明

HTML <hr>タグは、水平線を作成するために使用されます。 これは、HTMLでは水平ルールとも呼ばれます。

<!DOCTYPE html>
<html>

   <head>
      <title>HTML hr Tag</title>
   </head>

   <body>
      <p>This text will be followed by a horizontal line <hr/></p>
   </body>

</html>

これは、次の結果を生成します-

グローバル属性

このタグは、− link:/html/html_attributes_reference [HTML属性リファレンス]で説明されているすべてのグローバル属性をサポートします

特定の属性

HTML <hr>タグは、次の追加属性もサポートしています-

Attribute Value Description
align left right center Deprecated − Specifies the alignment of the horizontal rule.
noshade noshade Deprecated − Removes the usual shading effect that most browsers display.
size pixels or % Deprecated − Specifies the height of the horizontal rule.
width pixels or % Deprecated − Specifies the width of the horizontal rule.

イベント属性

このタグは、− link:/html/html_events_reference [HTMLイベントリファレンス]で説明されているすべてのイベント属性をサポートします。

ブラウザのサポート

Chrome Firefox IE Opera Safari Android
Yes Yes Yes Yes Yes Yes