Element "embed" is not Supported Error

1 reply [Last post]
Vaibhav
Vaibhav's picture
User offline. Last seen 6 days 16 hours 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 37 weeks 4 days 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> 

Who's online

There are currently 0 users and 3 guests online.

Recent Answers

Anonymous added a answer to LC3 Assembly Palindrome Program (3 years 23 weeks ago)
 
Anonymous added a answer to LC3 Assembly Palindrome Program (3 years 23 weeks ago)
 
Anonymous added a answer to Error-GetTypeHashCode()': no suitable method found to override (3 years 40 weeks ago)
 
Anonymous added a answer to AutoIncrement vs UniqueIdentifier (4 years 13 weeks ago)
 
vaibhav added a answer to Linq query on Datatable (4 years 15 weeks ago)
 
vaibhav added a answer to Delete Duplicate Records From a table (4 years 27 weeks ago)