xTxT Documentation

Region

A region is a grouping mechanism for other elements in an xTxT document. It's typically used for special styling.

/region
some text
/ul
Item 1
Item 2
\region

Attributes

$style
Applies a CSS style to the region.

Sub-Elements

Region is a container element, which can contain virtually any other kind of content element, including other regions.


Examples

Apply a class to an entire area of content

/region.example
some content
\region

Notes

Rendering (HTML)

Regions always render in HTML as a <DIV>