<embed/> Tag Examples

Examples of the <embed/> tag in HTML 5
Example of embedding video in HTML 5

The "old" YouTube embed code used an <object> tag and an <embed> tag. The <embed> tag provides a fallback for browsers that do not support the <object> tag. (The "new" YouTube code uses the <iframe> tag.

<object width="640" height="390">
   <param name="movie" value="http://www.YouTube.com/v/GGT8ZCTBoBA?fs=1&hl=en_US"/>
   <param name="allowFullScreen" value="true"/>
   <param name="allowscriptaccess" value="always"/>
   <embed src="http://www.YouTube.com/v/GGT8ZCTBoBA?fs=1&hl=en_US"
      type="application/x-shockwave-flash"
      allowscriptaccess="always" allowfullscreen="true"
      width="640" height="390"/>
</object>

Since the <param/> tag is a void element, it is not allowed to have any content, even HTML comments and therefore should always be coded as a self-closing standalone tag, ending with the delimiter string /> rather than just > (<param .../>).