label

Each label must not contain more than ONE field
Label elements shouldn't be nested.

Element Information

Model

a | br | span | bdo | map | object | img | tt | i | b | big | small | em | strong | dfn | code | q | samp | kbd | var | cite | abbr | acronym | sub | sup | input | select | textarea | label | button | ins | del | script

Attributes

QName Type Fixed Default Use Inheritable Annotation
accesskey Character optional
class xs:NMTOKENS optional
dir restriction of xs:token optional
for xs:IDREF optional
id xs:ID optional
lang LanguageCode optional
onblur Script optional
onclick Script optional
ondblclick Script optional
onfocus Script optional
onkeydown Script optional
onkeypress Script optional
onkeyup Script optional
onmousedown Script optional
onmousemove Script optional
onmouseout Script optional
onmouseover Script optional
onmouseup Script optional
style StyleSheet optional
title Text optional
xml:lang union of(xs:language, restriction of xs:string) optional
Attempting to install the relevant ISO 2- and 3-letter
         codes as the enumerated possible values is probably never
         going to be a realistic possibility.  See
         RFC 3066 at http://www.ietf.org/rfc/rfc3066.txt and the IANA registry
         at http://www.iana.org/assignments/lang-tag-apps.htm for
         further information.

         The union allows for the 'un-declaration' of xml:lang with
         the empty string.

Used By

Element Group inline.forms

Source

<xs:element name="label">
  <xs:annotation>
    <xs:documentation>Each label must not contain more than ONE field Label elements shouldn't be nested.</xs:documentation>
  </xs:annotation>
  <xs:complexType mixed="true">
    <xs:complexContent>
      <xs:extension base="Inline">
        <xs:attributeGroup ref="attrs"/>
        <xs:attribute name="for" type="xs:IDREF"/>
        <xs:attribute name="accesskey" type="Character"/>
        <xs:attribute name="onfocus" type="Script"/>
        <xs:attribute name="onblur" type="Script"/>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
</xs:element>

Sample