<SPACER> | NN <6 IE n/a HTML n/a
<SPACER> | HTML End Tag: Forbidden
As a solution to the need for creating blank space without forcing &nbsp; entities, incessant <P> tags, or transparent images, Navigator 3 introduced the spacer element. This element creates empty space within a line of text, between lines, or as a rectangular space. Some of this functionality can be re-created in a cross-browser implementation with style sheets. The element is supported only in Navigator 3 and Navigator 4.
Example
    <P>This is one line of a paragraph.
    <SPACER type="vertical" size="36">
    And this completes the paragraph with a three-line gap from the first line.</P>
Element-Specific Attributes

align | height | size | type | width

Element-Specific Event Handler Attributes
None.

align | NN <6 IE n/a HTML n/a
align="alignmentConstant" | Optional
Determines how a block type of spacer element aligns within the context of surrounding content. See Section 8.1.5 earlier in this chapter for a description of the possibilities.
Example
    <SPACER type="block" height="90" width="40" align="absmiddle">
Value
Case-insensitive constant value.
Default
bottom

height, width | NN <6 IE n/a HTML n/a
height="length" width="length" | Required
The size that a block type spacer element occupies in a document is governed by the height and width attribute settings. These attributes apply only when the type attribute is block.
Example
    <SPACER type="block" height="150" width="250">
Value
Positive integer or percentage values.
Default
0

lang | NN 3 IE 4 HTML 4
lang="languageCode" | Optional
The language being used for the element's attribute values and content. A browser can use this information to assist in proper rendering of content with respect to details such as treatment of ligatures (when supported by a particular font or required by a written language), quotation marks, and hyphenation. Other applications and search engines might use this information to aid the selection of spell-checking dictionaries and the creation of indices.
Example
    <SPAN lang="de">Deutsche Bundesbahn</SPAN>
Value
Case-insensitive language code.
Default
Browser default.
Object Model Reference
    [window.]document.getElementById(elementID).lang

size | NN <6 IE n/a HTML n/a
size="pixelCount" | Optional
The number of pixels of whitespace to insert either horizontally or vertically, depending on whether the type attribute is set to line or vertical. If the type attribute is set to block, the size attribute is ignored.
Example
    <SPACER type="line" size="40">
Value
Any positive integer.
Default
0

type | NN <6 IE n/a HTML n/a
type="spacerType" | Required
Defines which of the three spacer geometries is being specified for the spacer element. A type of line adds empty space in the same line of text as the preceding content; a type of vertical (or vert) adds empty space between lines of text; and a type of block defines a rectangular space that extends in two dimensions. For the line and vertical types, the size attribute must be assigned; for the block type, the height and width attributes must be assigned.
Example
    <SPACER type="line" size="40">
Value
Any of four case-insensitive constant values: block | line | vertical | vert.
Default
line

width |
See height.