<object>

El elemento HTML <object> representa un recurso externo, que puede ser tratado como una imagen, un contexto de navegación anidado, o como un recurso que debe ser manejado por un plugin.

Pruébalo

La fuente original de este ejemplo interactivo está almacenada en un repositorio de GitHub. Si quieres contribuir al proyecto de ejemplos interactivos, por favor clona https://github.com/mdn/interactive-examplesy envíanos un pull request.

Content categories Flow content; phrasing content; embedded content, palpable content; if the element has a usemap attribute, interactive content; listed, submittable form-associated element.
Contenido permitido cero o más elementos <param> , luego transparent.
Tag omission None, both the starting and ending tag are mandatory.
Padres permitidos Cualquier elemento que acepte embedded content (contenido incrustado).
Permitted ARIA roles application (en-US), document (en-US), img (en-US)
Interfaz DOM HTMLObjectElement (en-US)

Atributos

Este elemento incluye los global attributes.

archive only Obsoleto

Una lista separada por espacios de las URl's de archivos o recursos para el objeto.

border Obsoleto

El grosor de una línea de margen alrededor del control, en pixeles.

classid only Obsoleto

The URI of the object's implementation. It can be used together with, or in place of, the data attribute.

codebase only Obsoleto

The base path used to resolve relative URIs specified by classid, data, or archive. If not specified, the default is the base URI of the current document.

codetype only Obsoleto

The content type of the data specified by classid.

data

La dirección de la fuente, escrita como una URL válida. Al menos uno de los dos atributos, data o type, deben estar definidos.

declare only Obsoleto

The presence of this Boolean attribute makes this element a declaration only. The object must be instantiated by a subsequent <object> element. In HTML5, repeat the <object> element completely each that that the resource is reused.

form

El elemento form, si es que hay alguno, al que el objeto está asociado (su form propietario). El valor de este atributo debe ser el ID de un elemento <form> del mismo documento.

height

La altura del recurso mostrado, en CSS pixels. — (Valores absolutos unicamente. NO percentages)

name

El nombre de un contexto de navegación válido (HTML5), o el nombre del control (HTML4).

standby only Obsoleto

A message that the browser can show while loading the object's implementation and data.

tabindex only Obsoleto

The position of the element in the tabbing navigation order for the current document.

type

El content type (en-US) del recurso especificado mediante data. Al menos uno de los dos atributos, data o type, deben estar definidos.

typemustmatch

Este valor booleano indica si el atributo type y el content type (en-US) real del recurso deben coincidir para porder ser usados.

usemap

Una refercia hash-name a un elemento <map>; es decir un '#' seguido del valor de un name de un elemento map.

width

El ancho del recurso mostrado, en CSS pixels. — (Valores absolutos unicamente. NO percentages)

Ejemplos

Incrustar una película flash

html
<!-- Incrustar una película flash -->
<object data="movie.swf" type="application/x-shockwave-flash"></object>

<!-- Incrustar una película flash con parámetros -->
<object data="movie.swf" type="application/x-shockwave-flash">
  <param name="foo" value="bar" />
</object>

Especificaciones

Specification
HTML Standard
# the-object-element

Compatibilidad con navegadores

BCD tables only load in the browser

See also