Cascading Style Sheet support
Cascading Style Sheets (CSS) specify how certain properties of an element content are rendered. Inheritance rules allow a style attribute to be specified for one parent element instead of specifying it for each element in the hierarchy.
A style attribute can be defined in the following elements: <wml>, <card>, <p>, <anchor>, <img>, <option>, <a>, <input>, <br>, <optgroup>, and <template>.
If not defined specifically, a style attribute value is applied to the element which contains this attribute and all its child elements.
Attribute syntax
Values of the style attribute have the following syntax:
property:value
The default values for a style attribute are color:black and background-color:white.
Allowed values are the following:
-
color name: black, blue, yellow, etc.
-
hex value of an RGB color, for example, #FF0077
Multiple properties must be separated by a semicolon:
<p style="color:blue; background-color:yellow">paragraph text</p>