SpeakComputers.com
Home
Software
Electronics
Desktop Computers
Laptops
Games
Handheld Devices
Mobile Phones
Cameras
Camcorders
Printers
Books
Software Downloads 2012 Software Mac Software Security Student Editions Windows 7 Office 2010
Fundamentos de HTML.
Formato del documento HTML
Tags HTML
Tags Atributos - Propiedades
Enlaces HTML
Tablas HTML
Puntos – Enumeración HTML
Imágenes HTML
Formatear Texto HTML
Tipos de letra HTML
Elegir el elemento correcto
Meta Tags
Estilización HTML.
Elemento style HTML
Hojas de Estilo Externas
Tags atributo class HTML
HTML Elementos.
Elementos HTML
Elemento a
Elemento acronym
HTML Elemento address
Elemento area
Elemento b
Elemento bdo
Elemento big
Elemento blockquote
Elemento body
Elemento button
Elemento br
Elemento col
Elemento colgroup
Element comment
Elemento dd
Elemento del
Elemento dfn
Elemento div
Elemento dl
Elemento dt
Elemento em
Elemento fieldset
Elemento font
Elemento form
Elemento frame
Elemento frameset
Elemento head
Los elementos h1 al h6
Elemento hr
Elemento html
Elemento i
Elemento iframe
Elemento img
Elemento input
Elemento ins
Elemento kdb
Elemento label
Elemento legend
Elemento dd
Elemento del
Elemento dfn
Elemento div
Elemento dl
Elemento dt
Elemento em
Elemento fieldset
Elemento font
Elemento form
Elemento frame
Elemento frameset
Elemento head
Los elementos h1 al h6
Elemento hr
Elemento html
Elemento i
Elemento iframe
Elemento img
Elemento input
Elemento ins
Elemento kdb
Elemento label
Elemento legend
Elemento li
Elemento link
Elemento menu
Elemento meta
Elemento noframes
Elemento object
Elemento ol
Elemento optgroup
Elemento option
Elemento p
Elemento param
Elemento pre
Elemento small
Elemento span
Elemento strong
Elemento style
Elemento table
Elemento tbody
Elemento td
Elemento textarea
Elemento title
Elemento tr
Elemento u
Relacionado.
Estadísticas del Sitio Web
Cuadro de Colores HTML
ASP.NET C# VB.NET C++ .NET Infragistics DevComponents

El elemento <label>

El elemento <label> se usa para especificar una etiqueta para otro elemento en el documento. El elemento requiere un comando de apertura y uno de cierre. El elemento es un elemento inline. El contenido del control etiqueta es renderizado. Ejemplo:

<html>
<
head>
<
title>El Elemento label</title>
</
head>
<
body>
<
label for="input1">Haga clic en este texto para establecer focus en el recuadro.</label>
<
input id="input1">
<
br /><br />
<
label for="input2"> Haga clic en este texto para establecer focus en el recuadro.</label>
<
input id="input2">
<
br /><br />
Este texto no responde al elemento label.

</
body>
</
html>

En el ejemplo de arriba, establecemos el atributo “for” del elemento
<label> al control especificado, en este caso el elemento id <input>. El ejemplo de abajo cambiará el color de fondo del elemento <input> mediante un script cuando el elemento <input> esté enfocado.

<
html>
<
head>
<
title>El elemento label</title>
<
script>
function
GotFocus(TheInput)
{

var
zapped = document.getElementById(TheInput);
zapped.style.backgroundColor=
"#ff0000";
}

function
LostFocus(TheInput)
{

var
zapped = document.getElementById(TheInput);
zapped.style.backgroundColor=
"#ffffff";
}

</
script>
</
head>
<
body>
<
label for="input1" style="cursor: hand; color: #ff0000; font-family: Arial; text-decoration: underline;">Haga clic en este texto para establecer focus en el recuadro.</label>
<
input id="input1" onfocus="return GotFocus('input1')" onblur="return LostFocus('input1')">
<
br /><br />
<
label for="input2" style="cursor: hand; color: #ff0000; font-family: Arial; text-decoration: underline;">Haga clic en este texto para establecer focus en el recuadro.</label>
<
input id="input2" onfocus="return GotFocus('input2')" onblur="return LostFocus('input2')">
<
br /><br />
Este texto no responde al elemento label.

</
body>
</
html>



 

Computer Security
AntiVirus Software
Internet Security
Parental Controls
Backup & Recovery
Computer Protection
Anti Malware
Photo & Video
Photo & Video Editing
Video Music
Desktop Publishing
Professional Design
Home Publishing
Clipart
Business & Accounting
Accounting
Payroll
Check Printing
TAX
H&R Block
Microsoft Office
Design
Graphic Design
Home Design
Garden Design
Interior Design
Computer Aided Design
3D Design
Students & Teacher
Adobe
Microsoft Office
Dragon Naturally Speaking
Corel Draw
Serif
Student/Teacher Software
Copy Right 2006 SpeakComputers.com - All Rights Reserved.
Home About Privacy Policy Resouces