You can drag the Label component
from
the Palette's Basic category to the Visual Designer to create a label for another
component. A Label component provides support for speech browsers
and enables visual browsers to provide features like the ability
to click a text label to select an entry field that the label is associated with.
If all you need is simple text not directly associated with
a component, as in a title or a heading or a set of instructions,
use the Static Text component
instead.
label property. Those components' label properties add default labels that provide basic functionality and work well for simple pages. If you want more control over your labels, including the ability to position them in a Grid Panel component to align the labels and their components separately, use a Label component instead. The label component is rendered either as an HTML <label> element or a <span> element. A <span> element is rendered if the label is not associated with a component.
After dropping a label on your page, some typical things you might do are:
text property is updated with the text you entered. for property to associate the label with a component. If you are unable to set the for property, there are no components on the page that will accept a label.
required property is true, the Label component displays an asterisk. If the server rejects the page submission because the input is invalid, the page displays the Label component's text in red.text property to a data provider or an object that dynamically sets the displayed text of the label. For more information, see Bind to Data Dialog Box.text property to other objects or properties that supply data for the values of this component's properties.