From 1109132f09d75da9a28b649c7677bb6ce07c40c0 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:41:45 -0500 Subject: initial commit --- files/es/web/html/elemento/object/index.html | 144 +++++++++++++++++++++++++++ 1 file changed, 144 insertions(+) create mode 100644 files/es/web/html/elemento/object/index.html (limited to 'files/es/web/html/elemento/object/index.html') diff --git a/files/es/web/html/elemento/object/index.html b/files/es/web/html/elemento/object/index.html new file mode 100644 index 0000000000..d859ea1b66 --- /dev/null +++ b/files/es/web/html/elemento/object/index.html @@ -0,0 +1,144 @@ +--- +title: +slug: Web/HTML/Elemento/object +tags: + - Contenido incrustado + - Elemento + - HTML + - Referencia + - Web + - incrustar +translation_of: Web/HTML/Element/object +--- +

{{HTMLRef}}

+ +

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.

+ +
{{EmbedInteractiveExample("pages/tabbed/object.html", "tabbed-standard")}}
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Content categoriesFlow content; phrasing content; embedded content, palpable content; if the element has a {{htmlattrxref("usemap","object")}} attribute, interactive content; listed, submittable form-associated element.
Contenido permitidocero o más elementos {{HTMLElement("param")}} , luego transparent.
Tag omission{{no_tag_omission}}
Padres permitidosCualquier elemento que acepte embedded content (contenido incrustado).
Permitted ARIA roles{{ARIARole("application")}}, {{ARIARole("document")}}, {{ARIARole("image")}}
Interfaz DOM{{domxref("HTMLObjectElement")}}
+ +

Atributos

+ +

Este elemento incluye los global attributes.

+ +
+
{{HTMLAttrDef("archive")}}{{HTMLVersionInline(4)}} only{{Obsolete_Inline("HTML5")}}
+
Una lista separada por espacios de las URl's de archivos o recursos para el objeto.
+
{{HTMLAttrDef("border")}}{{Deprecated_Inline("HTML4.01")}}{{Obsolete_Inline("HTML5")}}
+
El grosor de una línea de margen alrededor del control, en pixeles.
+
{{HTMLAttrDef("classid")}}{{HTMLVersionInline(4)}} only{{Obsolete_Inline("HTML5")}}
+
The URI of the object's implementation. It can be used together with, or in place of, the data attribute.
+
{{HTMLAttrDef("codebase")}}{{HTMLVersionInline(4)}} only{{Obsolete_Inline("HTML5")}}
+
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.
+
{{HTMLAttrDef("codetype")}}{{HTMLVersionInline(4)}} only{{Obsolete_Inline("HTML5")}}
+
The content type of the data specified by classid.
+
{{HTMLAttrDef("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. 
+
{{HTMLAttrDef("declare")}}{{HTMLVersionInline(4)}} only{{Obsolete_Inline("HTML5")}}
+
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.
+
{{HTMLAttrDef("form")}}{{HTMLVersionInline(5)}}
+
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 {{HTMLElement("form")}} del mismo documento.
+
{{HTMLAttrDef("height")}}
+
La altura del recurso mostrado, en CSS pixels. -- (Valores absolutos unicamente. NO percentages)
+
{{HTMLAttrDef("name")}}
+
El nombre de un contexto de navegación válido (HTML5), o el nombre del control (HTML4).
+
{{HTMLAttrDef("standby")}}{{HTMLVersionInline(4)}} only{{Obsolete_Inline("HTML5")}}
+
A message that the browser can show while loading the object's implementation and data.
+
{{HTMLAttrDef("tabindex")}}{{HTMLVersionInline(4)}} only{{Obsolete_Inline("HTML5")}}
+
The position of the element in the tabbing navigation order for the current document.
+
{{HTMLAttrDef("type")}}
+
El content type  del recurso especificado mediante data. Al menos uno de los dos atributos, data o type, deben estar definidos. 
+
{{HTMLAttrDef("typemustmatch")}}{{HTMLVersionInline(5)}}
+
Este valor booleano indica si el atributo type y el content type real del recurso deben coincidir para porder ser usados.
+
{{HTMLAttrDef("usemap")}}
+
Una refercia hash-name a un elemento {{HTMLElement("map")}}; es decir un '#' seguido del valor de un {{htmlattrxref("name", "map")}} de un elemento map.
+
{{HTMLAttrDef("width")}}
+
El ancho del recurso mostrado, en  CSS pixels. -- (Valores absolutos unicamente. NO percentages)
+
+ +

Ejemplos

+ +

Incrustar una película flash

+ +
<!-- 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

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
EspecificaciónEstadoComentario
{{SpecName("HTML WHATWG", "embedded-content.html#the-object-element", "<object>")}}{{Spec2("HTML WHATWG")}}
{{SpecName("HTML5 W3C", "embedded-content-0.html#the-object-element", "<object>")}}{{Spec2("HTML5 W3C")}}
{{SpecName("HTML4.01", "struct/objects.html#h-13.3", "<object>")}}{{Spec2("HTML4.01")}}
+ +

Compatibilidad con Navegadores

+ + + +

{{Compat("html.elements.object")}}

+ +

See also

+ + -- cgit v1.2.3-54-g00ecf