| The <object> Tag |
|---|
The
|
We are working on converting to HTML 5. Please visit HTML <object> Tag on the HTML 5 standard version of this site.
| <object> Tag Syntax |
|---|
Syntax of the <object> tag |
| Attributes of the <object> Tag |
|---|
Attributes of the <object> tag
|
| HTML 5 Examples |
|---|
Examples of the
|
| Embedded Video |
|---|
Example of embedding video in HTML 5When embedding video from another site, such as YouTube, in an HTML 5 page the <object> tag is typically used rather than the <video> tag:
<object width="1280" height="745">
Demo of embedded YouTube video: |
| Object as Fallback |
|---|
|
The <object> tag can be combined with some other tags, such as the <video> tag <audio> tag to provide a fallback when the browser does not support the type of media provided. The <object> element for fallback media is coded within the <audio> or <video> tag as shown in the following example, which falls back to an embedded YouTube video:
<video poster="poster.png" controls="controls" style="border: black 1px solid; margin: 4px">
|
Last updated Sunday September 19, 2010
Printer-friendly PDF* format:
You are currently viewing this page in XHTML 1 Style Sheet* format (* see Clicklets for more infomation). This document is also available in XHTML 1*XML*HTML 4*HTML 5 Style Sheet*HTML 5 XML*HTML 5 non-XML* XHTML Mobile* WML Mobile* and printer-friendly PDF* formats. This is accomplished with Single Source Publishing, a content management system that uses templates in XSLT style sheets provided by XML Styles .com to transform the source content for various content delivery channels. There is also RDF* metadata that describes the content of this document.