Platform SDK: Web Telephony Engine

Labels

A label is a string of text created by the LABEL element. Labels are used to associate text with controls that do not have scope and cannot encapsulate text; that is, controls created using the BUTTON and INPUT elements. Web telephony supports association of labels to controls using the FOR attribute on the LABEL element.

When a Web site is graphically rendered, the person looking at the Web page intuitively understands the association between INPUT or BUTTON element and the text describing the element.

A Web telephony application requires some semantic association between the text describing the INPUT or BUTTON element and the element itself. When the association exists, the application can use the text to describe the element and direct the caller to provide input.

When a label is associated with a control, the label is not rendered at its original place, but only when the control is rendered. If no control is associated with the label, the label is rendered when encountered.

When a control is rendered, the label associated to it is the lowest label wrapping the control if this label has the appropriate FOR attribute or is the first label with the appropriate FOR attribute in the document.

If the control is a child of its associated label, all audio items inside the label, including the audio items of the control, are added in the order in which they appear in the document. The relevant access keys are added on all cues inside the label, from the label's cue-before property through the label's cue-after property. If the label is not a child of the associated label, its audio items are added after all the label's audio items, just before the cue-after property of the label. Again, access keys are inserted in all cues from the label's cue-before property through the label's cue-after property.