You are hereForums / Asp.Net / Element "embed" is not Supported Error

Element "embed" is not Supported Error


1 reply [Last post]
Aakash
Aakash's picture
User offline. Last seen 18 weeks 4 days ago. Offline
Joined: 08/19/2009

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>  
shantanu
shantanu's picture
User offline. Last seen 1 year 29 weeks ago. Offline
Joined: 08/20/2009
Visual Studio reports this

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;

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" data="Games/theprimitive.swf" type="application/x-shockwave-flash" width="600" height="420"> 
<param name="movie" value="Games/theprimitive.swf" /> 
<param name="quality" value="high" />
</object> 
<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>