xforms:label

Purpose

Provides a descriptive label for forms controls.

Contained by

Attribute groups

Example

<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/2002/06/xhtml2"
  xmlns:si="http://www.volantis.com/xmlns/2006/01/xdime2/si"
  xmlns:xforms="http://www.w3.org/2002/xforms">
  <head>
    <title>xforms:label</title>
    <xforms:model id="login">
      <xforms:instance>
        <si:instance>
          <si:item name="firstName"/>
        </si:instance>
      </xforms:instance>
    </xforms:model>
  </head>
  <body>
    <xforms:input model="login" ref="firstName">
      <xforms:label>Your Name:</xforms:label>
    </xforms:input>
  </body>
</html>

Related topics