Horje
HTML data Attribute

Definition and Usage

The data attribute specifies the URL of the resource to be used by the object.


Applies to

The data attribute can be used on the following element:

Element Attribute
<object> data

Browser Support


How to use the <object> element to embed a Flash file

The object element.
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<h1>The object element</h1>

<object data="https://horje.com/avatar.png" width="300" height="200"></object>
 
</body>
</html>

Output should be:

How to use the <object> element to embed a Flash file




html data attribute

Type:
Develop
Category:
Web Tutorial
Sub Category:
HTML Attribute
Uploaded by:
Admin


Read Article
https://develop.horje.com/learn/1434/reference