RmlUi has no prior understanding of XML elements other than the built-in element types.

When parsing a tag RmlUi will look up custom elements associated with the tag name and fall back to a generic element. Very few custom elements are required as most of the power in RmlUi comes from styling elements with RCSS to produce the desired layout.

The user is encouraged to follow standard HTML guidelines where possible to improve readability across the community. For more information on setting up RmlUi to emulate HTML4 see Appendix: HTML4 Style Sheet.

Global Attributes

Elements have a base set of attributes that are common to all types, which are:

id = id (CS)
The unique identifier for the element in this document.
class = cdata (CI)
Assigns a class name or set of class names to an element. Any number of elements may be assigned the same class name or names. Multiple class names must be separated by white space characters. See RCSS.
style = cdata (CS)
Specifies inline style information for the element. See RCSS.
lang = language-code (CI)
Specifies the language of the element’s text. Value is passed to the font engine to assist with text shaping. Inherited by child elements.
dir = ltr | rtl | auto (CS)
Specifies the flow direction of the element’s text. Value is passed to the font engine to assist with text shaping. Inherited by child elements. Unlike HTML, this attribute is case-sensitive and does not affect document layout.
on* events = cdata (CS)
Event bindings. See Events.
data-* data bindings = cdata (CS)
Denotes views and controllers for data bindings.