width (HTML attribute)
attribute set to
<embed src="giant-grasshopper.jpg" width="300" height="100"></embed>
An object does not require a
width attribute but, like the
height attribute, it has
its uses (refer to the advantages set out in the
height attribute reference).
width attribute is set by itself, but no
height attribute is set, the
embed content will be rescaled proportionally (assuming
that the object is a simple image).
In every other respect, the
width attribute is identical in usage/behavior as
A number representing the width of the embedded object in pixels.
The compatibility of this
attribute is dependent on the type of object. For image type objects,
there is reasonable cross-browser support for the