<EMBED> Tag & its Attribute
HTML Tag <EMBED>
<EMBED> Places an embedded object into a document. Examples of embedded objects include MIDI files and digital video files. Because the <EMBED> tag is not standard, we suggest you use the <OBJECT> tag instead. If the browser does not have built-in support for an object, visitors will need a plug-in to use the object within the document.
Attribute of <EMBED> Tag
ACCESSKEY
Specifies a key sequence that binds to the embedded object.
<EMBED SRC="st.ocx" ACCESSKEY="E">
Possible Values
Any Alphabet.
ALIGN
Indicates how an embedded object is positioned relative to the document borders and surrounding contents.
<EMBED SRC="song.mid" ALIGN="CENTER">
Possible Values
LEFT, RIGHT, CENTER, ABSBOTTOM,ABSMIDDLE, BASELINE,BOTTOM,TEXTTOP, TOP
AUTOSTART
To set the auto start .
<EMBED SRC="explode.avi" AUTOSTART="true">
Possible Values
true,false
HEIGHT
Specifies the vertical dimension of the embedded object. (See the UNITS=attribute for how to measure dimensions.)
<EMBED SRC="rocket.avi" WIDTH="50"
HEIGHT="40">
Possible Values
Any Positive Integer value.
HIDDEN
Indicates that the embedded object should not be visible.
<EMBED SRC="song.mid" HIDDEN>
Possible Values
HIDDEN
NAME
Gives the object a name by which other objects can refer to it.
<EMBED SRC="running.avi" NAME="movie1">
Possible Values
Any valid name.
PALETTE
Indicates the foreground and background colors for the embedded object. You can specify colors with hexadecimal RGB values or with color names.
<EMBED SRC="flying.avi"
PALETTE="Red|Black">
Possible Values
Two Color Name or hexadecimal color code separated by pipeline.
SRC
Indicates the relative or absolute location of the file containing the object you want to embed.
<EMBED SRC="beethoven_9.midi">
Possible Values
URL
TITLE
Specifies text assigned to the tag. You might use this attribute for context-sensitive help within the document. Browsers may use this to show tool tips over the embedded object.
<EMBED SRC="explode.avi" TITLE="movie">
Possible Values
Any text message.
UNITS
Modifies the behavior of the HEIGHT= and WIDTH= attributes. UNITS=PIXELS measures attributes in pixels. UNITS=EN measures dimensions in EN spaces.
<EMBED SRC="rocket.avi" WIDTH="50"
HEIGHT="40" UNITS="PIXELS">
Possible Values
PIXELS, EN
WIDTH
Indicates the horizontal dimension of the embedded object. (See the UNITS= attribute for how to measure dimensions.)
<EMBED SRC="cartoon.avi" WIDTH="50">
Possible Values
value in Pixel or in Percentage.