<object>...</object>

HTML4 HTML5

Used to embed external resources into a web page, such as PDF files, images, audio recordings, video, or other HTML documents[cite: 3]. It also allows defining fallback content that will be displayed if loading the resource fails or if it is unsupported[cite: 3].

Both opening and closing tags are mandatory[cite: 3].

Attributes:

Example

Code:

<object data="https://upload.wikimedia.org/wikipedia/commons/1/1a/SVG_example_markup_grid.svg" type="image/svg+xml" width="200" height="200"> Failed to load image. </object>

The browser will interpret this code as follows:

Failed to load image.