Friday, February 8, 2013

HTML,XHTML Tag Attributes Information

<label> Tag Attributes

Attribute Description
forThe for attribute is used to associate the label with the control. This is accomplished by setting the value of the for attribute to match the control's id attribute.
idThe id attribute assigns a unique name to a tag. This allows style sheets or scripts to reference the tag. 
classThe class attribute assigns a class name to a tag. The class name does not need to be unique. More than one tag can have the same class name. This allows style sheets or scripts to reference multiple tags with a single class name. 
styleThe style attribute specifies styles for the tag. For Cascading Style Sheets (CSS), the syntax is name:value. Each name:value pair is separated by semicolons. 
titleThe title attribute specifies additional information about the tag. It is common for browsers to display the title when the pointing device stops over the object. 
accesskeyThe accesskey specifies a shortcut key for a tag. The action that is taken when an access key is invoked depends on the tag and may also depend on the browser. For example, if it is used with an <a> tag, some browsers may follow the link when the access key is invoked and other browsers may give focus to the link. 
onblurThe onblur attribute specifies a script to be run when the tag loses focus. 
onfocusThe onfocus attribute specifies a script to be run when the tag loses focus. 
onclickThe onclick attribute specifies a script to be run when the object is clicked with a mouse or other pointing device. 
ondblclickThe ondblclick attribute specifies a script to be run when the object is double clicked with a mouse or other pointing device. 
onkeydownThe onkeydown attribute specifies a script to be run when a key is pressed down. 
onkeypressThe onkeypress attribute specifies a script to be run when a key is pressed and released. 
onkeyupThe onkeyup attribute specifies a script to be run when a key is released. 
onmousedownThe onmousedown attribute specifies a script to be run when the mouse button, or other pointing device button, is pressed while over the object. 
onmousemoveThe onmousemove attribute specifies a script to be run when the mouse, or other pointing device, is moved while it is over the object. 
onmouseoutThe onmouseout attribute specifies a script to be run when the mouse, or other pointing device, is moved away from an object after being over it.
onmouseoverThe onmouseover attribute specifies a script to be run when the mouse, or other pointing device, is moved onto the object. 
onmouseupThe onmouseup attribute specifies a script to be run when the mouse button, or other pointing device button, is released while over the object.
dirThe dir attribute tells the browser whether the text should be displayed from left-to-right or right-to-left. It does not reverse the direction of the characters, like the <bdo> tag does, but it can help the browser to determine if the text should be aligned on the left side or the right side. 
langThe lang attribute specifies a language. This attribute can help the browser to correctly display text. This attribute can also be useful for braille translation software, speech synthesizers, dictionary definitions, etc. 
xml:langThe xml:lang attribute specifies a language for XHTML documents. This attribute can help the browser to correctly display text. This attribute can also be useful for braille translation software, speech synthesizers, dictionary definitions, etc. 

Note: XHTML only.

For more detail please visit external site i.e.