Minimal HelpHintLabel

From W3C XForms Group Wiki (Public)
Jump to: navigation, search

Add @appearance to help, hint and label.

Guidance for XHTML 1.0 / XHTML5 integration:

<input ref="name">
  <label appearance="minimal">Name</label>
</input>

Could display the label inside the field value, in a distinguished manner (light grey italic, for example) and have it disappear as soon as the value is typed in. HTML5 offers a feature called "Placeholder" that makes this easy, but it's possible to do in other presentation languages as well.

<input ref="name">
  <label>Name: </label>
  <hint appearance="minimal">Full name</label>
</input>

Could display the hint inside the field value, in a distinguished manner (light grey italic, for example) and have it disappear as soon as the value is typed in.

<input ref="name">
  <label>Name: </label>
  <help src="/cgi-bin/help?field=name" appearance="minimal" />
</input>

Could display as a hyperlink with class="xforms-help xforms-minimal-help-link".