This feature is obsolete. Although it is still supported by browsers, its usage is discouraged in new projects. Try to avoid using it.
<spacer> is an HTML element which is used for inserting white spaces to web pages. It was created by NetScape for achieving same effect as a single-pixel layout GIF image, which was something web designers used to use to add white spaces to web pages, without actually using a GIF. However
<spacer> is not supported by any major browser and same effects can be created with various CSS rules. In Mozilla applications, support for this element was removed in Gecko 2.0. Therefore usage of
<spacer> is unnecessary.
Like all other HTML elements, this element supports the global attributes.
This attribute determines type of spacer. Possible values are
This attribute can be used for defining size of spacer in pixels when type is
This attribute can be used for defining width of spacer in pixels when type is
This attribute can be used for defining height of spacer in pixels when type is
This attribute determines alignment of spacer. Possible values are
<span>Just a text node</span> <spacer type="horizontal" size="10"></spacer> <span>Just another text node</span> <spacer type="block" width="10" height="10"></spacer>