Html-spacer-tag

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

HTML-<spacer>タグ

説明

HTML <spacer>タグは空白を指定します。

<!DOCTYPE html>
<html>

   <head>
      <title>HTML spacer Tag</title>
   </head>

   <body>
      Create some space <spacer type = "block" width = "50"/> here.
   </body>

</html>

<spacer>タグは、Netscape 4以降のバージョンでのみ使用できます。 これは、次の結果を生成します-

グローバル属性

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

特定の属性

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

Attribute Value Description
type vertical horizontal block The type attribute is used to specify whether the spacer will be horizontal, vertical, or block.
size number Specifies the number of pixels tall or wide the spacer will be This attribute is only used if the spacer type is "horizontal" or "vertical." If the spacer type is "block," then the width attribute is used.
width number The width attribute is used when the spacer type = "block". Between the quotes specify a pixel value for the width of the block.
height number The height attribute is used when the spacer type = "block". Between the quotes specify a pixel value for the height of the block.
align left right center The align tag is used to specify the alignment of the block of white space. Valid alignments are left, right, and center.

イベント属性

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

ブラウザのサポート

このタグは、Netscape 4以降のバージョンでのみ使用できます。

Chrome Firefox IE Opera Safari Android
No No No No No No