Name
UNITS — NN 2 IE 3 HTML n/a
Synopsis
UNITS=”measurementUnitType"
Optional
The UNITS
attribute is supposed to dictate the
kind of measurement units used for the element’s
HEIGHT
and WIDTH
attribute
values. Both Navigator 4 and Internet Explorer 4 appear to treat the
measurements in pixels, regardless of this attribute’s setting.
Example
<EMBED SRC="jazz.aif" HEIGHT=150 WIDTH=250 UNITS="en"></EMBED>
Value
Not only does this attribute not appear to influence the rendering of
an EMBED
element, but Navigator 4 and Internet
Explorer 4 disagree on the precise spelling and available units for
values. Navigator 4 specifies choices of pixels
or
en
; Internet Explorer goes with
px
or em
.
Default
pixels
(or px
).
Object Model Reference
- IE
[window.]document.embeds[i].units
[window.]document.elementID.units
Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.