XUL Programmer's Reference Manual

<text />

Attributes Common Children
value * * *
class  
id  
for  
 

<text> is a general purpose text display widget. It can be used in places where you want to display text by itself, as you might have done previously with an HTML label, or where the text is a part of a composite XBL widget.

 

value
Description
The value attribute specifies the text displayed for the text item.
Syntax
<text value="string" />
Example
<text value="For more information, click Help" />
Notes
None.
 
class
Description
The class attribute specifies a particular class of text widget to use for display.
Syntax
<text class="string" />
Example
<checkboxvalue="Honda"/>
<checkbox value="Isuzu" />
Notes
A single class in the global skin, text class="label", adds extra padding around the text. Other than this there are no specialized classes for skinning this general purpose XUL widget.
 
for
Description
The for attribute indicates that the text element is to be used as part of a uniquely identified XXX.
Syntax
<text for="id of target element" />
Example
<textfor="button1" value="View Source" />
<button for="button1" />
Notes
XXX

Last updated: 3/31/00 Ian Oeschger