HTML and CSS Reference
In-Depth Information
Notes
• As an empty element,
source
should be written under XHTML5 with a self-
identifying close tag like so
<source />
.
• Browsers should use multiple
source
elements in a fall-through fashion finding the
first appropriate version for playback. Page authors should consider putting in an
appropriate number of media variations to account for browser differences.
<spacer> (Extra Space)
This older, Netscape-proprietary element specifies an invisible region, which is useful for
page layout.
Proprietary Syntax (Netscape 3 and 4 Only)
<spacer
align="absmiddle | absbottom | baseline | bottom |
left | middle | right | texttop | top"
height="pixels"
size="pixels"
type="block | horizontal | vertical"
width="pixels">
Element-Specific Attributes
align
This attribute specifies the alignment of the spacer with respect to surrounding text.
It is used only with spacers with
type="block"
. The default value for the
align
attribute
is
bottom
. The meanings of the
align
values are similar to those of the
align
values used
with the
img
element.
height
This attribute specifies the height of the invisible region, in pixels. It is used only
with spacers with
type="block"
.
size
Used with
type="block"
and
type="horizontal"
spacers, this attribute sets the
spacer's width, in pixels. Used with a
type="vertical"
spacer, this attribute is used to set
the spacer's height.
type
This attribute indicates the type of invisible region. A
horizontal
spacer adds
horizontal space between words and objects. A
vertical
spacer adds space between lines.
A
block
spacer defines a general-purpose positioning rectangle, like an invisible image that
text can flow around.
width
This attribute is used only with the
type="block"
spacer and is used to set the
width of the region, in pixels.
Example
A line of text with two
<spacer type="horizontal" size="20">
words
separated by 20 pixels. Here is a line of text
.<br>
<spacer type="vertical" size="50">
Here is another line of text with a large space between the two