English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The data attribute specifies the URL of the resource to be used by the object.
How to embed Flash files using the <object> element:
<!DOCTYPE html> <html> <head> <title>HTML: <object> data attribute - Basic Tutorial Website (oldtoolbag.com)</title> </head> <body> <object width="400" height="400" data="bookmark.swf"></object> </body> </html>Test it out ‹/›
IEFirefoxOperaChromeSafari
All major browsers support the data attribute.
The data attribute specifies the URL of the resource to be used by the object.
None.
<object data="URL">
Value | Description |
---|---|
URL | Specify the URL of the resource to be used by the object. Possible values: Absolute URL-Point to data on another website (for example href =“ http://www.example.com/helloworld.swg”) Relative URL-Point to data within the website (for example href =“ helloworld.swg”) |