HTML <object> data Attribuut

❮ HTML <object>-tag

Voorbeeld

Hoe het element <object> te gebruiken om een ​​afbeelding in te sluiten:

<object data="pic_trulli.jpg" width="300" height="200"</object>

Definitie en gebruik

Het dataattribuut specificeert de URL van de resource die door het object moet worden gebruikt.


Browserondersteuning

Attribute
data Yes Yes Yes Yes Yes

Syntaxis

<object data="URL">

Attribuutwaarden

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="http://www.example.com/images/pic_trulli.jpg")
  • A relative URL - points to data within a web site (like href="pic_trulli.jpg")

❮ HTML <object>-tag