Please note, this is a STATIC archive of website www.w3schools.com from 05 May 2020, cach3.com does not collect or store any user information, there is no "phishing" involved.
THE WORLD'S LARGEST WEB DEVELOPER SITE

HTML <object> data Attribute

❮ HTML <object> tag

Example

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

<object data="pic_trulli.jpg" width="300" height="200"</object>
Try it Yourself »

Definition and Usage

The data attribute specifies the URL of the resource to be used by the object.


Browser Support

Attribute
data Yes Yes Yes Yes Yes

Syntax

<object data="URL">

Attribute Values

Value Description
URL Specifies the URL of the resource to be used by the object.

Possible values:

  • An absolute URL - points to data on another web site (like href="https://www.example.com/helloworld.swg")
  • A relative URL - points to data within a web site (like href="helloworld.swg")

❮ HTML <object> tag