You are here: Reference > HTML > attributes > units (embed)

units attribute (embed)

Browser support:
Specifies the measurement system used for the height and width attributes of an embed object.
The embed tag is a non-standard tag in HTML but supported by all commonly used browsers.
JavaScript page for this attribute: units. You can find other example(s) there.

Possible values:

String that sets the measurement system.
One of the following values:
em
Width and height values are relative to the size of the current font.
px
Explorer default. Width and height values are in pixels.
Default: this attribute has no default value.

Example HTML code 1:

This example illustrates the use of the units attribute:
<embed id="myEmbed" type="application/x-mplayer2" src="testVideo.wmv" 
        style="width:320px; height:286px;" units="em" />
Did you find this example helpful? yes no

Supported by tags:

Related pages:

External links:

User Contributed Comments

Post Content

Post Content