Valid XHTML <object> Tags for Videos and more - Web Team Procedures and Notes
This page is intended for use only by the Web Team.
- Flickr Slideshow
- Flickr Widget
- Flickr Badge
- YouTube Video
- QuickTime Movie (.mov)
- Windows Media Video (.wmv)
- Twitter Feed (uses Javascript, not <object> tag)
- Twitter Widget
- Google Audio Player
- Picasa Web Slideshow
- RockYou Slideshow
- Shockwave Flash (.swf)
- Director/Shockwave (.dcr)
- Panoramas
Summary: <object> Tag and Attributes
<object style="width:240px; height:70px" data="LINK" type="text/html" standby="Loading…"></object>
Attributes for the <object> tag:
- data - The URL of the object (required).
- width - Width of object. Use CSS instead.
- height - Height of object. Use CSS instead.
- standby - Text to display when loading.
- archive - The URL for archived versions.
- name - The name of the object if you are using it in JavaScript/VBScript or some other scripting language.
- type - The MIME type of the object (required). See MIME Reference on W3Schools.
Just a Few MIME Types MIME Type File Type / Extension text/html html, htm application/msword doc (docx?) application/pdf pdf application/rtf rtf application/vnd.ms-excel xls application/vnd.ms-powerpoint ppt application/x-director dcr application/x-mspublisher pub application/x-shockwave-flash swf audio/mpeg mp3 text/plain txt video/mpeg mpg, mpeg video/quicktime mov, qt video/x-msvideo avi video/x-ms-wmv wmv - May be incompatible with browsers - "From personal experience, adding those attributes will only render it in Internet Explorer."
- classid - Defines a ClassID in the registry.
- codebase - Defines where the code is for the object??
- codetype - The MIME type for the code in the above 2 values??
- Deprecated - Use CSS instead:
- align - Aligns the object.
- border - The border around the object.
- hspace/vspace - Margins around the object.
Source: Juggling An Iframe Box With Xhtml Sites.
General References
- The object tag - embed content in valid strict HTML (for XHTML, include closing / for <param>)
- W3Schools - HTML <object> Tag
- W3Schools - HTML <param> Tag (nested inside <object>)
- W3Schools - HTML <iframe> Tag (not valid for XHTML Strict; use <object> instead)
