VOOZH about

URL: https://www.geeksforgeeks.org/html/html5-mathml-mfenched-tag/

⇱ HTML5 MathML <mfenched> tag - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

HTML5 MathML <mfenched> tag

Last Updated : 7 Jul, 2023

The MathML <mfenched> tag in HTML5 is used to add custom open and closing parentheses. Like you can open any parentheses and can close different brackets and separators.

Syntax:

<mfenced open="parentheses" close="parentheses" separators=" ">
child elements
</mfenced>

Attributes: This tag accepts some attribute which are listed below:  

  • class|id|style: This attribute is used to hold the styles of the child elements.
  • href: This attribute is used to hold any hyperlink to a specified URL.
  • mathbackground: This attribute holds the value of the math expressions background color.
  • mathcolor: This attribute holds the color of the math expressions.
  • open: This attribute holds the opening parentheses.
  • separator: This attribute holds the separator for each string or anything you want to separate from anything.
  • close: This attribute holds the closing parentheses.

Below example illustrates the MathML <mfenched> tag in HTML5:

Example:

Output:

👁 Screenshot-from-2023-07-06-15-57-40

Supported Browsers: The browsers supported by HTML5 MathML <mfenched> tag are listed below: 

  • Firefox
Comment