object data Attribute - HTML CSS HTML Tag

HTML CSS examples for HTML Tag:object

Description

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

Attribute Values

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

The following code shows how to use the <object> element to embed a Flash file:

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>

<object width="400" height="400" data="helloworld.swf">
</object><!--  w w  w  . ja  v  a2 s.c o m-->

</body>
</html>

Related Tutorials