HTML Attributes
HTML data attribute
Specifies the resource embedded by an object element. Unlike data-* attributes, it is not a storage mechanism for arbitrary author metadata. Applicable elements include: <object>. Check each element’s value rules. Example uses illustrative URLs or local assets; provide the corresponding files or application endpoints when running it.
Formal Syntax & Structure
html syntaxhtml
data="guide.pdf"Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| data | URL | Specifies the resource embedded by an object element. Unlike data-* attributes, it is not a storage mechanism for arbitrary author metadata. |
Working Example
Example Snippethtml
<object data="guide.pdf" type="application/pdf"> <a href="guide.pdf">Read guide</a></object>