HTML - attributes - data

revision:


Content

"data" attribute : specifies the URL of the resource in object element. syntax some examples


"data" attribute : specifies the URL of the resource in object element.

top

It specifies the URL of the resource to be used by the object element. The data attribute of the <object> element sets the URL of the resource, which can be audio, video, pdf, flash, etc. used by the object.


syntax

top

<object data="URL">

URL specifies the URL of the resource to be used by the object. Possible values: an absolute URL, which points to data on another web site, or a relative URL, which points to data within a web site.


some examples

top
codes:
                    <object data="../../pics/1.jpg" width="300" height="200"></object>
                

codes:

                    <object data="../../pics/Wuzhen-20-10_02.mp4" width="400" height="300"></object>