Path: blob/main/files/en-us/web/mathml/global_attributes/mathbackground/index.md
6546 views
------{{QuickLinksWithSubPages("/en-us/docs/Web/MathML/Global_attributes")}}{{Deprecated_Header}}
The mathbackground global attribute sets the background-color of a MathML element.
Note: Use CSS for styling MathML whenever possible. The
mathbackgroundattribute should only be included for applications that are not CSS-aware and will be overridden by the CSSbackground-colorproperty value, if set.
Syntax
Values
{{cssxref("<color>")}}
: The uniform color of the background.
Specifications
{{Specifications}}
In MathML 3 and earlier versions, a more limited set of values was supported. Since MathML Core, the syntax matches CSS {{cssxref("<color>")}} values.
This attribute was designed for MathML applications that are not CSS-aware. Since MathML Core, the use of equivalent CSS is recommended instead.
Browser compatibility
{{Compat}}
See also
All global attributes.
{{cssxref("background-color")}}