HTML <object> data Attribute
Example
How to use the <object> element to embed an image:
<object data="pic_trulli.jpg" width="300" height="200"</object>
Try it Yourself »
Definition and Usage
The data attribute specifies the URL of the resource to be used by the object.
Browser Support
| Attribute | |||||
|---|---|---|---|---|---|
| data | Yes | Yes | Yes | Yes | Yes |
Syntax
<object data="URL">
Attribute Values
| Value | Description |
|---|---|
| URL | Specifies the URL of the resource to be used by the object. Possible values:
|
❮ HTML <object> tag