Skip to main content

<span> : Span Text

The <span> element is used to format the elements or text inside.

Attributes

bold

A boolean value that makes the text bold.

italic

A boolean value that makes the text italic.

underline

A boolean value that makes the text underline.

obfuscated

A boolean value that makes the text obfuscated.

strikethrough

A boolean value that makes the text strikethrough.

color

A named or hexadecimal color value.

Examples

The following will create a string with color text thats red and bold.

<text><span color="#ff0000" bold="true">Text</span></text>

Version History

VersionChanges
1.5Initial release.