Element "embed" is not Supported Error
Thu, 11/19/2009 - 01:11
Hi,
I embed a flash in my web page, but, it has an error said that
Validation: (XHTML 1.0 transitional) Element "embed" is not supported.
so what
I need to replace it? please help. The following is the code. Thanks.
<object width="600" height="400"> <param name="movie" value="http://www.youtube.com/v/xHN8zGn28BA&hl=en_US&fs=1&color1=0x2b405b&color2=0x6b8ab6&border=1"/> <param name="allowFullScreen" value="true"/> <param name="allowscriptaccess" value="always"/> <embed src="http://www.youtube.com/v/xHN8zGn28BA&hl=en_US&fs=1&color1=0x2b405b&color2=0x6b8ab6&border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="600" height="400"/> </object>
Visual Studio reports this error but the flash works just fine, which is kind of confusing and annoying. Despite the error the web page or web application still compiles and runs.
The <embed> element is supported by both Internet Explorer and Netscape, but it is not a standard HTML or XHTML element. The World Wide Web Consortium (W3C) recommend using the <object> element instead.
For those who are still loking for the answer;