Open In App

HTML5 MathML mathbackground Attribute

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:

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:

Article Tags :