<object> - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:object

Introduction

The object element words the same way as the embed element, and has some additional features.

The object Element summary

Item value
Element: object
Local Attributes:data, type, height, width, usemap, name, form
Contents:Zero or more param elements and, optionally, phrasing or flow content to be used as a fallback.
Tag Style: Start and end tags
New in HTML5? No
Changes in HTML5 The form attribute is new in HTML5. The archive, classid, code, codebase, codetype, declare, standby, align, hspace, vspace, and border attributes are obsolete.
Style ConventionNone

The following code shows how you can use the object element to embed the same YouTube video Using the object and param Attributes.

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
   <head> 
      <title>Example</title> 
   </head> 
   <body> 
      <object width="560" height="349" data="http://www.youtube.com/v/qzA60hHca9s?version=3" type="application/x-shockwave-flash"> 
         <param name="allowFullScreen" value="true"> 
      </object>  
   </body><!--  ww  w  .j  a va 2s .  c o m-->
</html>

The data attribute provides the location for the content.


Related Tutorials