Forum Moderators: open

Message Too Old, No Replies

<object> and <embed>

in W3C Standards

         

EinsteinBQAT

2:20 am on Aug 18, 2003 (gmt 0)

10+ Year Member



Hi!

This is my first question and first post. :)

Using <embed> for inserting multimedia stuff (Flash, Shockwave, music, video, etc.) is not approved by W3C which recommends the use of <object> and <param>. However, not all browser support that kind of coding (Netscape/Mozilla for example). Then, how can you get your site to validate against W3C (X)HTML standards when you're using <embed> for browsers that don't support <object>?

<embed></embed> is not approved.
<object><embed></embed></object> is not approved.

What are you suppose to do?

pageoneresults

2:25 am on Aug 18, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Hello EinsteinBQAT, Welcome to WebmasterWorld [webmasterworld.com]! You may want to join us in this discussion over here...

A clear answer about <!-- text used in the movie-->... [webmasterworld.com]

RonPK

4:01 pm on Aug 18, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member


Hi Einstein,

Try this:
[code]<object type="application/x-shockwave-flash" data="mymovie.swf" width="450" height="350">
<param name="movie" value="mymovie.swf">
<img src="noflash.png" width="450" height="350" alt="this is not flash">
</object>
[/code]

The image is what people see who don't have the Flash plugin.
Read more on this at http://www.alistapart.com/stories/flashsatay/

choster

10:43 pm on Aug 18, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



BTW Mozilla and Netscape 6+ support <object>. Netscape 4.x claims to support it, but actually requires <embed> the same as earlier versions.

RonPK

6:45 am on Aug 19, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Choster, I have to disagree. Try the code I gave; it works fine in my NN4.76/Win.

The problem with the usual code is not the <object> element, but the classid:-stuff, which is only usable for ActiveX. By instead supplying the correct MIME type, the browser should know what to do.

EinsteinBQAT

3:05 pm on Aug 19, 2003 (gmt 0)

10+ Year Member



Hey thank you all!

Let me try the code! I'll keep you posted!

Thanks.

EinsteinBQAT

4:52 pm on Aug 19, 2003 (gmt 0)

10+ Year Member



Thanks. It does work!