HTML data attribute

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

Example

<object data="files/demo.html" type="text/html">
 </object>
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?

 

Email:

Message:

Get the newsletter