HTML and CSS Reference
src This attribute specifies the URL of source content for the embedded object.
type This attribute specifies the MIME type of the embedded object. It is used by the
browser to determine an appropriate plug-in for rendering the object. It can be used instead
of the src attribute for plug-ins that have no content or that fetch it dynamically.
units This Netscape 4+-specific attribute is used to set the units for measurement for the
embedded object in pixels or as a relative em value.
vspace This attribute specifies, in pixels, the size of the top and bottom margins between
the embedded object and surrounding text.
<!-- embed with a close tag -->
<embed src="testmovie.mov" height="150" width="150">
<img src="testgif.gif" height="150" width="150" alt="Test Image">
No standard initially, but widely supported
Firefox 1+, Internet Explorer 4+,
Netscape 2+, Opera 4+, Safari 1+
• Historically, it has been unclear whether or not the close tag for <embed> is required.
Many sites tended not to use it, and documentation is not consistent. A close </embed>
tag should be required and should surround any alternative content in a noembed
• This element was supposed to be phased out in favor of the object element, but so
far its usage seems to have diminished only slightly.
• The embed element is not favored by the W3C and was dropped by (X)HTML
specifications previous to HTML5.
• Embedded objects are multimedia content files of arbitrary type that are rendered by
browser plug-ins. The type attribute uses a file's MIME type to determine an
appropriate browser plug-in. Any attributes not defined are treated as object-specific
parameters and are passed through to the embedded object. Consult the plug-in or
object documentation to determine these.
<fieldset> (Form Field Grouping)
This element allows form designers to group thematically related controls together. The
element usually contains a legend element, which labels the grouped form controls.
dir="ltr | rtl"