HTML <object> dataAttributes
Example
How to use the <object> element to embed a Flash file:
<object width="400" height="400" data="helloworld.swf"></object>
Try it Yourself »
Browser Support
![]()
![]()
![]()
![]()
![]()
All major browsers support the data attribute.
Definition and Usage
The data attribute specifies the URL of the resource used by the object.
Differences between HTML 4.01 and HTML5
None.
Syntax
<object data="URL">
Attribute Values
| Value | Description |
|---|---|
| URL | Specifies the URL of the resource used by the object. Possible values:
|
HTML <object> Tag Other Extensions