Change Language


Follow Navioo On Twitter

embed

Defines an object, such as a multimedia file, embedded in an HTML document.

Browser/User Agent Support

IE Netscape Mozilla Opera Safari
2.0+ 2.0+ 1.0+ 4.0+ no

Example

This example defines center-aligned embedded object that plays the "myMovie.mov" file:

 <embed src="myMovie.mov" align="center" height="350" width="350"> 
	<noembed> Please download the appropriate multimedia player.</noembed>
</embed>

Remarks

Although the <embed></embed> tag is supported by most browsers, it is not W3C-compliant. Use <object></object> to be W3C-compliant.

Attribute Detail

Attribute IE Netscape Mozilla Opera Safari
accesskey
[key].
Hot-key shortcut for the element.
5.5+ no no no 1.0+
 
Defines the alignment of the element.
2.0+ 1.0+ 1.0+ 4.0+ 1.0+
 
alt
[text]. Example values (Usually a name/description of the element): "banner.gif", "cat.jpg", etc.
Specifies alternative text to display if the element cannot be displayed as expected.
2.0+ 1.0+ 1.0+ 4.0+ 1.0+
 
border
[border-width]. Example values: 0 (borderless), 1, 2, etc.
Width (in pixels) of the border around the element.
2.0+ 1.0+ 1.0+ 4.0+ 1.0+
 
class
[class-name]. Example values: header-class, list-element, etc.
CSS class assigned to the element.
2.0+ 1.0+ 1.0+ 4.0+ 1.0+
 
code
[url]
URL of the Java class file for the element.
2.0+ 2.0+ 1.0+ no 1.0+
 
codebase
[url]
URL for the code base for the element.
2.0+ 2.0+ 1.0+ no 1.0+
 
height
[number-of-pixels]
Height of the element (in pixels).
2.0+ 1.0+ 1.0+ 4.0+ 1.0+
 
If true, specifies that the element is hidden.
no no no no 1.0+
 
hspace
[number-of-pixels]
Number of pixels of space to the left and right of the element (i.e. horizontal margin).
2.0+ 1.0+ 1.0+ 4.0+ 1.0+
 
id
[element-id]
Unique identifier for the element.
2.0+ 1.0+ 1.0+ 4.0+ 1.0+
 
Script language for the element.
3.0+ 2.0+ 1.0+ no 1.0+
 
name
[element-name]
Unique name identifier for the element.
2.0+ 1.0+ 1.0+ 4.0+ 1.0+
 
Specifies whether to use the background or foreground color palette for the element.
no 4.0+ no no no
 
Specifies a web page with installation information for the plugin for the element.
no 4.0+ no no 1.0+
 
src
[url]
URL for the source for the element.
2.0+ 1.0+ 1.0+ 4.0+ 1.0+
 
style
[style-name]
Inline style for the element.
2.0+ 1.0+ 1.0+ 4.0+ 1.0+
 
title
[text-description]
Short text description for the element.
2.0+ 1.0+ 1.0+ 4.0+ 1.0+
 
type
[MIME-type]
MIME type for the embedded object.
4.0+ 1.0+ 7.0+ no
 
Specifies the unit for the height and width of the element.
no 4.0+ no no no
 
Specifies whether or not the element is unselectable.
5.5+ no no no no
 
vspace
[number-of-pixels]
Number of pixels of space above and below the element (i.e. vertical margin).
2.0+ 1.0+ 1.0+ 7.0+ 1.0+
 
width
[number-of-pixels | percentage]. Example values: 200px, 15%, etc.
Width of the element (pixels or percentage).
2.0+ 1.1+ 1.0+ 4.0+ 1.0+
 

Event Detail

Event IE Netscape Mozilla Opera Safari
Fires when the element becomes active.
4.0+ no no no no
 
Fires immediately before the element becomes active.
4.0+ no no no no
 
Fires immediately before the selection is cut to the clipboard.
4.0+ no no no 1.0+
 
Fires immediately before the element stops being the active element.
4.0+ no no no no
 
Fires immediately before the selection is pasted from the clipboard to the element.
4.0+ no no no 1.0+
 
Fires when the element loses focus.
2.0+ 1.0+ 1.0+ 4.0+ 1.0+
 
Fires when the element is clicked.
2.0+ 1.0+ 1.0+ 4.0+ 1.0+
 
Fires when the element is right-clicked and the context menu opens.
4.0+ no no no 1.0+
 
Fires immediately before the element is selected.
4.0+ no no no no
 
Fires when the element is cut to the clipboard.
4.0+ no no no 1.0+
 
Fires when the element is double-clicked.
2.0+ 1.0+ 1.0+ 4.0+ 1.0+
 
Fires when the active element becomes inactive.
4.0+ no no no no
 
Fires when the element receives focus.
2.0+ 1.0+ 1.0+ 4.0+ 1.0+
 
Fires immediately before an element receives focus.
4.0+ no no no no
 
Fires immediately after focus moves from the element to another element.
4.0+ no no no no
 
Fires when a user presses the F1 key to activate help.
4.0+ no no no no
 
Fires when the content of the element finishes loading.
2.0+ 1.0+ 1.0+ 4.0+ 1.0+
 
Fires when a user presses down on a key while the element has focus.
2.0+ 1.0+ 1.0+ 4.0+ 1.0+
 
Fires when a user presses a key or holds down the key while the element has focus.
2.0+ 1.0+ 1.0+ 4.0+ 1.0+
 
Fires when a user releases a key while the element has focus.
2.0+ 1.0+ 1.0+ 4.0+ 1.0+
 
Fires when the element loses mouse capture.
4.0+ no no no no
 
Fires when a user clicks down on the mouse button while the element has focus.
2.0+ 1.0+ 1.0+ 4.0+ 1.0+
 
Fires when the mouse pointer enters the element.
4.0+ no no no no
 
Fires when the mouse pointer leaves the element.
4.0+ no no no no
 
Fires when the mouse moves while the pointer over the element.
2.0+ 1.0+ 1.0+ 4.0+ 1.0+
 
Fires when the mouse pointer moves off of the element.
2.0+ 1.0+ 1.0+ 4.0+ 1.0+
 
Fires when the mouse pointer moves over the element.
2.0+ 1.0+ 1.0+ 4.0+ 1.0+
 
Fires when the user releases the mouse button while the element has focus.
2.0+ 1.0+ 1.0+ 4.0+ 1.0+
 
Fires when the user rotates the mouse wheel while the element has focus.
4.0+ no no no no
 
Fires when the element moves.
4.0+ no no no no
 
Fires when the element stops moving.
4.0+ no no no no
 
Fires immediately before the element moves.
4.0+ no no no no
 
Fires when the clipboard contents are pasted onto the element.
4.0+ no no no 1.0+
 
Fires when one of the properties of the element changes.
4.0+ no no no no
 
Fires when the ready state of the element changes.
4.0+ no no no no
 
Fires when the element is finished being resized.
4.0+ no no no no
 
Fires immediately before a user resizes the element.
4.0+ no no no no
 
Fires when a user scrolls the element.
4.0+ no no no 1.0+
 

Ajax Javascript feed

↑ Grab this Headline Animator