HTML5 MathML mathbackground Attribute
Last Updated :
20 Nov, 2020
Improve
This attribute holds the value of the math expressions background color. This attribute is accepted by all the MathML tags.
Syntax:
<element mathbackground="Colorname">
Attribute Values:
- Colorname: This value defines the color you want.
Below example illustrate the mathbackground in HTML5 MathML:
Example:
<!DOCTYPE html>
<html>
<head>
<title>HTML5 MathML mathbackground Attribute</title>
</head>
<body style="text-align:center;">
<h1 style="color:green">GeeksforGeeks</h1>
<h3>HTML5 MathML mathbackground Attribute</h3>
<math>
<ms lquote="„" rquote=" “" mathcolor="Yellow"
mathbackground="Purple">
A Computer Science Portal for Geeks
</ms>
</math>
</body>
</html>
Output:

Supported Browsers: The browsers supported by HTML5 MathML mathbackground attribute are listed below:
- Firefox