[html] embed in not support in W3C!

When adding swf in a page as code below:

 

<embed height="260" width="400" name="plugin" src="myswf.swf" type="application/x-shockwave-flash" />

 

We got the error in W3C: http://validator.w3.org

# Error Line XXX, column XXX: element "embed" undefined .

 

Why?

Because syntax "embed" is not supported in W3C. Ok, now we try another way to resolve it.

try this code:

<object width="400" height="260" data="myswf.swf" type="application/x-shockwave-flash">
<param value="myswf.swf">
<img width="400" height="260" alt="Flash is not supported!" src="noflash.gif">
</object>

 

Cheers! We done it in W3C now!!!

posted @ 2010-05-21 14:58  DavidHHuan  阅读(360)  评论(0编辑  收藏  举报