Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1010957
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T09:09:45+00:00 2026-05-16T09:09:45+00:00

A typical code fragment obtained from the YouTube embed feature looks like this: <object

  • 0

A typical code fragment obtained from the YouTube embed feature looks like this:

<object width="660" height="405">
  <param name="movie" value="http://www.youtube.com/v/NWHfY_lvKIQ?fs=1&amp;hl=en_GB&amp;border=1"></param>
  <param name="allowFullScreen" value="true"></param>
  <param name="allowscriptaccess" value="always"></param>
  <embed src="http://www.youtube.com/v/NWHfY_lvKIQ?fs=1&amp;hl=en_GB&amp;border=1"
         type="application/x-shockwave-flash" 
         allowscriptaccess="always" 
         allowfullscreen="true" 
         width="660" 
         height="405">
  </embed>
</object>

Now, the <embed> element has a type attribute to tell the browser it is embedding a flash file, but for browsers using the <object> tag, there appears to be no information available to the browser!

Why is a classid or codebase attribute not required here? The only options I can think of are:

  • IE assumes Flash embedding in the absence of other information
  • or, IE reads this information from the <embed> tag

I can’t find documentation to verify either option. And I’m curious!

EDIT: found a great comparison of Flash embedding techniques here. Still want to know how it works though…

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T09:09:45+00:00Added an answer on May 16, 2026 at 9:09 am

    I experimented a bit and found that removing the <embed> tag causes IE to fail to embed the video. I was surprised that IE used the embed tag, so delved deeper. If you just want to know the answer, scroll down the ‘summary’ at the end!

    The simplest thing which worked in IE8 is this:

    <embed src="http://www.youtube.com/v/NWHfY_lvKIQ?fs=1&amp;hl=en_GB&amp;border=1"
             width="660"
             height="405">
     </embed>
    

    No type attribute there, so the browser must be checking the MIME type of the src attribute to figure out what to do. I verified this by serving a Flash file with a different MIME type – it would not play unless I provided a type attribute of application/x-shockwave-flash (this behaviour is documented for IE here)

    Of course, if an <object> tag does contain the classid, the <embed> will be ignored, which is what you’d expect. I verified this by having the embed tag reference another video

    <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" WIDTH="660" HEIGHT="405" id="adobeWay">
    <PARAM NAME=movie VALUE="http://www.youtube.com/v/NWHfY_lvKIQ?fs=1&amp;hl=en_GB&amp;border=1">
    <PARAM NAME=quality VALUE=high>
    <PARAM NAME=bgcolor VALUE=#FFFFFF>
    
    <embed src="http://youtube.com/v/rIFh1ydXWmg"
             type="application/x-shockwave-flash"
             allowscriptaccess="always"
             allowfullscreen="true"
             width="660"
             height="405">
      </embed>
    
    </OBJECT>
    

    When the object tag is used, the Flash plugin doesn’t care what the MIME type of the movie is. Again, I verified this by serving a valid SWF file with a different MIME type.

    Remove the classid from that last test, and you’d get the alternative video in the <embed> tag. This leads me to wonder why there’s any <param> tags at all if they are just being ignored in a YouTube-style embed.

    Summary

    When there’s no classid attribute in an <object> (or any other way of determining the required plugin, like a data attribute), IE renders whatever it can find inside the object tag, which means it will render the <embed> tag (IE calls this object fallback). If that tag contains no type attribute, then the MIME type of the src is used to determine the correct plugin to use.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This code compiles but looks very strange. I have a typical and simple parent/child
Consider some typical CF code involving error handling, say something like this: ABRecordRef aRecord
To navigate to a specific page in the assembly, the typical code looks like:
A typical SWT sample code looks like the following code: final Display display =
A typical example for C#/MySQL interaction involves code like this (I'm skipping try/catches and
I would select multiple DOM elements using a typical code such as this: $('#ele1,
The typical Python threadpool will have a structure like this one: def run(self): while
I understand the following is the typical code to launch an exe from java
Using Xerces C++ I generated the typical C++ code from the below schema. Upon
I've created your typical jQuery slider (code from here ). Everything works just fine

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.