<spacer>

Deprecated: This feature is no longer recommended. While some browsers may still support it, it may have already been removed from relevant web standards, may be in the process of being phased out, or may be retained only for compatibility reasons. Avoid using it and, if possible, update existing code. Please note that this feature may stop working at any time.

The HTML <spacer> element is an obsolete HTML element that allowed white spaces to be inserted into pages. It was designed by Netscape to achieve the same effect as a single-pixel layout image, which was something web designers used to add white space to web pages without actually using an image. However, <spacer> is no longer supported by major browsers and you can now achieve the same effects using simple CSS.

Attributes

type

This attribute determines the type of spacer. Possible values are horizontal, vertical and block.

size

This attribute can be used to define the size of the spacer in pixels when the type is horizontal or vertical.

width

This attribute can be used to define the width of the spacer in pixels when the type is block.

height

This attribute can be used to define the height of the spacer in pixels when the type is block.

align

This attribute determines the alignment of the spacer. Possible values are left, right and center.

Example

<span>Testo a caso</span>
<spacer type="horizontal" size="10"></spacer>                                
<span>Ancora del testo a caso</span>
<spacer type="block" width="10" height="10"></spacer>