button

Content is "Flow" excluding a, form and form controls

Element Information

Model

p | h1 | h2 | h3 | h4 | h5 | h6 | div | ul | ol | dl | menu | dir | pre | hr | blockquote | address | center | noframes | table | br | span | bdo | object | applet | img | map | tt | i | b | u | s | strike | big | small | font | basefont | em | strong | dfn | code | q | samp | kbd | var | cite | abbr | acronym | sub | sup | noscript | ins | del | script

Attributes

QName Type Fixed Default Use Inheritable Annotation
accesskey Character optional
class xs:NMTOKENS optional
dir restriction of xs:token optional
disabled restriction of xs:token optional
id xs:ID optional
lang LanguageCode optional
name 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
tabindex tabindexNumber optional
title Text optional
type restriction of xs:token submit optional
value 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="button">
  <xs:annotation>
    <xs:documentation>Content is "Flow" excluding a, form and form controls</xs:documentation>
  </xs:annotation>
  <xs:complexType mixed="true">
    <xs:complexContent>
      <xs:extension base="button.content">
        <xs:attributeGroup ref="attrs"/>
        <xs:attributeGroup ref="focus"/>
        <xs:attribute name="name"/>
        <xs:attribute name="value"/>
        <xs:attribute name="type" default="submit">
          <xs:simpleType>
            <xs:restriction base="xs:token">
              <xs:enumeration value="button"/>
              <xs:enumeration value="submit"/>
              <xs:enumeration value="reset"/>
            </xs:restriction>
          </xs:simpleType>
        </xs:attribute>
        <xs:attribute name="disabled">
          <xs:simpleType>
            <xs:restriction base="xs:token">
              <xs:enumeration value="disabled"/>
            </xs:restriction>
          </xs:simpleType>
        </xs:attribute>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
</xs:element>

Sample