Standards Based Flash for XHTML or HTML

After wondering about this for a few days, I have seen places on the web attempt this. Surely, it must be possible to do and at the same be cross-browser compatible. Well, the following method works in both IE, FF, Opera, and Safari. Also, this method is valid in HTML 4.01 Strict and valid in all the XHTML doctypes (even XHTML 1.1). If you report otherwise, please inform me with your operating system, browser and version. Here is the workable method:
XHTML:

<object type="application/x-shockwave-flash" data="http://yourwebsite.com/and/flash/file/or/youtube/or/something/" width="425" height="355">
<param name="movie" value="http://yourwebsite.com/and/flash/file/or/youtube/or/something/" />
</object>

HTML:

<object type="application/x-shockwave-flash" data="http://yourwebsite.com/and/flash/file/or/youtube/or/something/" width="425" height="355">
<param name="movie" value="http://yourwebsite.com/and/flash/file/or/youtube/or/something/">
</object>

Again, please inform me if this does not work in your browser!

Comments are closed.