Skip to content
Related Articles

Related Articles

HTML | data Attribute

Improve Article
Save Article
Like Article
  • Last Updated : 20 Jan, 2022

The HTML | data Attribute is used to specify the URL of the Embedded file of the Object. It can be used with the <object> element. 

<object data="URL">

Attribute Values: It contains single value URL which is used to specify the source of the object.

The possible value of URL are:

  • absolute URL: It points to another website.
  • relative URL: It points to a file within a website.

Example: This Example illustrates the use of the data Attribute. 


<!DOCTYPE html>
    <title>HTML | data Attribute</title>
        <h1>HTML | data Attribute</h1>
    <object data=


Supported Browsers: The browser supported by HTML data Attribute are listed below: 

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Opera
  • Safari


My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!