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/api/htmllabelelement/index.html | 82 ++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 files/es/web/api/htmllabelelement/index.html (limited to 'files/es/web/api/htmllabelelement') diff --git a/files/es/web/api/htmllabelelement/index.html b/files/es/web/api/htmllabelelement/index.html new file mode 100644 index 0000000000..50df0281c2 --- /dev/null +++ b/files/es/web/api/htmllabelelement/index.html @@ -0,0 +1,82 @@ +--- +title: HTMLLabelElement +slug: Web/API/HTMLLabelElement +tags: + - API + - HTML DOM + - HTMLLabeledElement + - Interface + - Referencia +translation_of: Web/API/HTMLLabelElement +--- +
{{ APIRef("HTML DOM") }}
+ +

La interfaz HTMLLabelElement proporciona acceso a propiedades especificas de los elementos {{HTMLElement("label")}}. A su vez, hereda métodos y propiedades de la interfaz base {{domxref("HTMLElement")}}.

+ +

{{InheritanceDiagram(600,120)}}

+ +

Propiedades

+ +

Heredando propiedades de los elementos padres {{domxref("HTMLElement")}}.

+ +
+
{{domxref("HTMLLabelElement.control")}} {{ReadOnlyInline}}
+
Es un {{domxref("HTMLElement")}} representando el control a la cual cada etiqueta esta asociado.
+
{{domxref("HTMLLabelElement.form")}} {{ReadOnlyInline}}
+
Es un objeto {{domxref("HTMLFormElement")}} representado el formulario al cual el control etiquetado está asociado, arrojando el valor null, si no hay asociado ningun control o si ese control no está asociado con un formulario. En otras palabras, esto es un atajo para: HTMLLabelElement.control.form.
+
{{domxref("HTMLLabelElement.htmlFor")}}
+
Este es un contenedor de caracteres que contiene el ID del control etiquetado, esto es lo que refleja el atributo {{htmlattrxref("for", "label")}}
+
+ +

Métodos

+ +

No hay metodos específicos, hereda los metodos de los elelemtos padres, {{domxref("HTMLElement")}}.

+ +

Especificaciones

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
EspecificaciónEstatusComentario
{{SpecName('HTML WHATWG', "#htmllabelelement", "HTMLLabelElement")}}{{Spec2('HTML WHATWG')}} 
{{SpecName('HTML5 W3C', "forms.html#the-label-element", "HTMLLabelElement")}}{{Spec2('HTML5 W3C')}}La propiedad accessKey ahora está definida en: {{domxref("HTMLElement")}}.
+ La siguiente propiedad ha sido agregada: control.
{{SpecName('DOM2 HTML', 'html.html#ID-13691394', 'HTMLLabelElement')}}{{Spec2('DOM2 HTML')}}Sin cambios desde: {{SpecName("DOM1")}}.
{{SpecName('DOM1', 'level-one-html.html#ID-13691394', 'HTMLLabelElement')}}{{Spec2('DOM1')}}definición inicial
+ +

Compatibilidad de Navegador Web

+ +
+ + +

{{Compat("api.HTMLLabelElement")}}

+
+ +

Ver también

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