Menu
×
   ❮     
HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C C++ C# BOOTSTRAP REACT MYSQL JQUERY EXCEL XML DJANGO NUMPY PANDAS NODEJS R TYPESCRIPT ANGULAR GIT POSTGRESQL MONGODB ASP AI GO KOTLIN SASS VUE DSA GEN AI SCIPY CYBERSECURITY DATA SCIENCE
     ❯   

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

Example

Example

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

<object width="400" height="400" data="helloworld.swf"></object>
Try it Yourself »

Browser Support

Attribute
data Yes Yes Yes Yes Yes