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">
Try </>

data attribute value

The value of data attribute is a valid URL.

Related Tags

The tags which support this attribute are as follows.

<object> tag

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

Was this article helpful?




Get the newsletter