HTML <spacer> Tag

Advertisements


Description

The HTML <spacer> tag specifies a whitespace.

Example:

<!DOCTYPE html>
<html>
<head>
<title>HTML spacer Tag</title>
</head>
<body>
Create some space <spacer type="block" width="50" /> here.
</body>
</html>

<spacer> tag is available in Netscape 4 and higher version only. This will produce following result:

Create some space here.

Global Attributes

This tag supports all the global attributes described in - HTML Attribute Reference

Specific Attributes

The HTML <object> tag also supports following additional attributes:

AttributeValueDescription
typevertical
horizontal
block
The type attribute is used to specify whether the spacer will be horizontal, vertical, or block.
sizenumberSpecifies 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.
widthnumberThe width attribute is used when the spacer type="block". Between the quotes specify a pixel value for the width of the block.
heightnumberThe height attribute is used when the spacer type="block". Between the quotes specify a pixel value for the height of the block.
alignleft
right
center
The align tag is used to specify the alignment of the block of white space. Valid alignments are left, right, and center.

Event Attributes

This tag supports all the event attributes described in - HTML Events Reference

Browser Support

This tag is available in Netscape 4 and higher version only.

ChromeFirefoxIEOperaSafariAndroid
NoNoNoNoNoNo

html_tags_reference.htm

Advertisements