HTML and CSS Reference
In-Depth Information
Replace embed with object
Change all embed elements to object elements.
Code View:
<embed src="banner.swf" quality="high" bgcolor="#006699"
width="160" height="600" name="banner"
align="middle" allowScriptAccess="sameDomain"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer" />
<embed src="quicktime_example.mov" width="640" height="480"
autoplay="true" controller="false"
pluginspage="http://www.apple.com/quicktime/download/"
/>
<embed src="wicked.rpm" width='200' height='134' />
<object type="application/x-shockwave-flash"
width="160" height="600" id="banner">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="banner.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#006699" />
</object>
<object width="640" height="480"
classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
codebase="http://www.apple.com/qtactivex/qtplugin.cab">
<param name="src" value="quicktime_example.mov">
<param name="controller" value="false">
<param name="autoplay" value="true">
</object>
<object id='media23'
clasid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA"
width='200' height='125'>
<param name='src' value='wicked.rpm'/>
</object>
Motivation
Netscape invented the embed element to reference any sort of content that would be handled by external plug-
ins rather than the browser itself: Flash, RealMedia, QuickTime, PDF, and so on. If this tag were invented today,
namespaces would be used, but back then elements were just added to HTML willy-nilly. Netscape figured that
one tag for 100 formats would be better than 100 tags for 100 different formats, and they were almost right.
However, it did allow the embed element to have an indefinite number of undefined attributes, which makes it
impossible to validate.
Consequently, despite its broad adoption and support, embed has never been a part of any HTML specification.
However, because it is a nonstandard extension, browser support is inconsistent, even to the level of which
Search WWH ::




Custom Search