Flash XHTML, Valid HTML Code For Flash File (.swf)

This is the HTML code for inserting flash file with .swf extension. With this code, the embedded flash will be detected as Valid XHTML.

Here the HTML embedded Flash code:

<object type="application/x-shockwave-flash"
data="images/yourflashfile.swf" width="480" height="60">
<param name="movie" value="images/yourflashfile.swf" />
<param name="quality" value="high" />


  • Line 1 and line 2 should be no line space. Combile the line 1 and 2 in same line (same column or row).
  • Change “images/yourflashfile.swf” to the location path of your flash file which need to be embedded.

I hope this tutorial will be helpful.. 🙂

Leave a Reply