span - Span Content
Combines text, typically for the application of properties.
Category
Core ControlsSyntax
<xp:span attributes>content</xp:span>
Category | Properties |
---|---|
accessibility | role, title |
basics | attrs, binding, dir, id, lang, loaded, rendered, rendererType |
dojo | dojoAttributes, dojoType |
events | onclick, ondblclick, onkeydown, onkeypress, onkeyup, onmousedown, onmousemove, onmouseout, onmouseover, onmouseup |
styling | disableTheme, style, styleClass, themeId |
Usage
At run time, the content of the span appears on the page with any assigned properties.
Typically you do not apply this control directly. If you highlight text on a page and apply a property such as bold, a span is automatically created.
To work directly with a space, source mode is best.
Examples
Here a Span control is used to bold text:<xp:span id="span1" style="font-weight:bold">
Now is the time.
</xp:span>