148 Chapter 9 – Adding Images and Other Page Elements
Summary of Object Placement Tags
Web Design in a Nutshell, eMatter Edition
hspace=number
NN 4.0 and IE 4.0 only.Used in conjunction with thealignattribute, this
attribute specifies in number of pixels the amount of space to leave clear to
the left and right of the media object.
name=name
Specifies a name for the embedded object. This is particularly useful for refer-
encing the object from a script.
palette=foreground|background
NN 4.0 and MSIE 4.0 only.This attributes applies to the Windows platform
only. A value offoregroundmakes the palette used by the plug-in the fore-
ground palette. Similarly, a value ofbackgroundmakes the plug-in use the
background palette, which is also the default.
pluginspage=url
NN 4.0 and MSIE 4.0 only.Specifies the URL for information on installing the
appropriate plug-in.
src=url
Provides the URL to the file or object to be placed on the page. This is a
required attribute.
units=pixels|en
Defines the measurement units used by height and width. The default is
pixels. En units are half the point size of the body text.
vspace=number
NN 4.0 and MSIE 4.0 only.Used in conjunction with thealignattribute, this
attribute specifies (in pixels) the amount of space to leave clear above and
below the media object.
width=number
Specifies the width of the object in number of pixels. Some media types
require this attribute.
Internet Explorer only
alt=text
Provides alternative text when the media object cannot be displayed (same as
for the<img> tag).
code=filename
Specifies the class name of the Java code to be executed.
codebase=url
Specifies the base URL for the application.
Netscape Navigator only
border=number
Specifies the width of the border (in pixels) around the media object.
frameborder=yes|no
Turns the border on or off.