According to Macromedia, the typical method of embedding Flash on a website is using the following HTML, replacing “myFlashMovie.swf” with the filename:
<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"
WIDTH="550" HEIGHT="400" id="myMovieName"><PARAM NAME=movie VALUE="myFlashMovie.swf"><PARAM NAME=quality VALUE=high><PARAM NAME=bgcolor VALUE=#FFFFFF><EMBED src="myFlashMovie.swf" quality=high bgcolor=#FFFFFF WIDTH="550" HEIGHT="400"
NAME="myMovieName" ALIGN="" TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED></OBJECT>
Not only is this messy-looking, it’s invalid XHTML, since the <embed> element isn’t part of the XHTML specification.
Often this wouldn’t be a problem, but since WordPress uses the stricter XHTML standard instead of the loosey-goosey HTML specification, using such code in your posts, pages, or template will likely cause your blog to not validate.
Thankfully, the same Flash video can be included in the following manner:
<object type="application/x-shockwave-flash" data="myFlashMovie.swf" height="250" width="800"><param name="movie" value="myFlashMovie.swf" /></object>
Not only is this much cleaner and shorter, it also avoids the <embed> element, ensuring XHTML compliance.
Tags:

3 Comments
Interestingly, the
<embed>element is going to be part of the official HTML 5 specification, although I plan on remaining loyal to<object>.Wow, strange that they’d have two HTML elements that practically do the same thing!
Kind of like <strike> and <s> I suppose.
Thank you so much..I searched for hours for a easy embed solution that worked on all browsers. This worked