HTML data attribute

data attribute represents the URL of the external resource. Data attribute is used in the object element.

<object data="files/demo.html" type="text/html">
</object>
</>

Attribute values

All possible values of data attribute

The value of data attribute is a valid URL.

Related Tags

The tags that support data attribute

<object> tag

object tag embeds external resource such as image, media, or other resources to be processed by the plugin.



Was this article helpful?

 

Email:

Message: