Last updated: 2026-09-12
<object>The OBJECT Element
A generic container for embedded resources (PDF, image, Flash, SVG…) with param children and fallback content.
| Category | Scripts & Embedding |
|---|---|
| Content Model | Flow content |
| Allowed Parents | Any element that accepts flow content |
| Content Tag | Yes — requires closing </object> tag |
| Status | Standard |
📝 Syntax
<object data="file.pdf" type="application/pdf"></object>
⚙️ Attributes
This element supports the global attributes plus the following:
| Attribute | Value | Description |
|---|---|---|
data | URL of the resource to embed. | |
type | MIME type of the resource. | |
name | Name used in forms or scripts. | |
width | Width of the embedded area. | |
height | Height of the embedded area. |
▶ Example
Edit the code below and see the live result in the playground:
🌐 Browser Support
| Browser | |||||
|---|---|---|---|---|---|
| <object> | ✓ v1 | ✓ v12 | ✓ v1 | ✓ v1 | ✓ v1 |
| Supported in all major browsers | |||||
Tip: object is more general than iframe and shows inner content as fallback; modern pages often prefer iframe.
🏷️ Related Tags
💡 Related Cases
More case studies coming soon — check back later.