embedding flash in html for XHTML strict doc type

HTML Add comments

Normally when we include flash html code it will have an object tag which will have a child tag which works well i all browsers with html document type transitional.

When we set html document type to strict then w3c validation shows error on embed tag. So what could be the alternate to include a flash code for w3c strict mode.

i found this code in google codes… and i have given the link below to the resource which is in detail and also has a java script alternate of including flash content in a html page.

 
      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="780" height="420">
        <param name="movie" value="myContent.swf" />
        <!--[if !IE]>-->
        <object type="application/x-shockwave-flash" data="myContent.swf" width="780" height="420">
        <!--<![endif]-->
          <p>Alternative content</p>
        <!--[if !IE]>-->
        </object>
        <!--<![endif]-->
      </object>

the complete documentation can be found at the following url…

http://code.google.com/p/swfobject/wiki/documentation

Leave a Reply

Entries RSS