# YouTube uses both \<OBJECT\> and \<EMBED\> for their embeddable snippet. Why?

**URL:** <https://forum.kirupa.com/t/youtube-uses-both-object-and-embed-for-their-embeddable-snippet-why/250323>\
**Category:** web dev\
**Created:** [January 28, 2008, 3:23pm UTC](https://forum.kirupa.com/t/youtube-uses-both-object-and-embed-for-their-embeddable-snippet-why/250323 "2008-01-28T15:23:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kristopher](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kristopher/32/501_2.png) [@Kristopher](https://forum.kirupa.com/u/Kristopher)\
**Post date:** [January 28, 2008, 3:23pm UTC](https://forum.kirupa.com/t/youtube-uses-both-object-and-embed-for-their-embeddable-snippet-why/250323/1 "2008-01-28T15:23:34Z")

</div>

Hey all,

Check out this page, then the upper-right box with the embeddable snippet: [YouTube - Justice - D.A.N.C.E (Version Finale)](http://www.youtube.com/watch?v=fo_QVq2lGMs&feature=related)

Notice how YouTube has the \<EMBED\> placed inside the \<OBJECT\>? Why did they do that? Is it more beneficial?

Code:

```auto

<object width="425" height="355">
   <param name="movie" value="http://www.youtube.com/v/fo_QVq2lGMs&rel=1"></param>
   <param name="wmode" value="transparent"></param>
   <embed src="http://www.youtube.com/v/fo_QVq2lGMs&rel=1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed>
</object>

```

Right now on my site, I just have the \<EMBED\> for the snippet. Example can be seen here: [Joke example](http://www.comicwonder.com/joke/b6681360b)

Any guidance or advice is greatly appreciated! :party:
