# <mfenced>

Deprecated
This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.

The deprecated MathML `<mfenced>` element provides the possibility to add custom opening and closing parentheses (such as brackets) and separators (such as commas or semicolons) to an expression.

This element will be removed in the future. Use the `<mrow>` and `<mo>` elements instead.

## Attributes

`class`, `id`, `style`
Provided for use with stylesheets.
`close`
A string for the closing delimiter. The default value is `")`" and any white space is trimmed.
`href`
Used to set a hyperlink to a specified URI.
`mathbackground`
The background color. You can use `#rgb`, `#rrggbb` and HTML color names.
`mathcolor`
The text color and also the fraction line color. You can use `#rgb`, `#rrggbb` and HTML color names.
`open`
A string for the opening delimiter. The default value is `"("` and any white space is trimmed.
`separators`
A sequence of zero or more characters to be used for different separators, optionally divided by white space, which is ignored. The default value is ",". By specifying more than one character, it is possible to set different separators for each argument in the expression. If there are too many separators, all excess is ignored. If there are too few separators in the expression, the last specified separator is repeated.

## Examples

### The last separator is repeated (`,`)

Sample rendering:

Rendering in your browser: $\left\{a;b;c,d,e\right\}$

```[itex]
<mfenced open="{" close="}" separators=";;,">
<mi>a</mi>
<mi>b</mi>
<mi>c</mi>
<mi>d</mi>
<mi>e</mi>
</mfenced>
[/itex]
```

### All excess is ignored (`,`)

Sample rendering:

Rendering in your browser: $\left[a|b|c|d|e\right]$

```[itex]
<mfenced open="[" close="]" separators="||||,">
<mi>a</mi>
<mi>b</mi>
<mi>c</mi>
<mi>d</mi>
<mi>e</mi>
</mfenced>
[/itex]
```

## Specifications

Specification Status Comment
MathML 3.0
The definition of 'mfenced' in that specification.
Recommendation Current specification
MathML 2.0
The definition of 'mfenced' in that specification.
Recommendation Initial specification

## Browser compatibility

Update compatibility data on GitHub
Desktop Mobile Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Chrome No support No Edge No support No Firefox Full support 1 IE No support No Opera No support No Safari Full support 6 WebView Android No support No Chrome Android No support No Firefox Android Full support 4 Opera Android No support No Safari iOS Full support 6 Samsung Internet Android No support No Chrome No support No Edge No support No Firefox Full support 7 IE No support No Opera No support No Safari Full support 10 WebView Android No support No Chrome Android No support No Firefox Android Full support 7 Opera Android No support No Safari iOS No support No Samsung Internet Android No support No Chrome No support No Edge No support No Firefox Full support 4 IE No support No Opera No support No Safari Full support 6 WebView Android No support No Chrome Android No support No Firefox Android Full support 4 Opera Android No support No Safari iOS No support No Samsung Internet Android No support No Chrome No support No Edge No support No Firefox Full support 4 IE No support No Opera No support No Safari Full support 6 WebView Android No support No Chrome Android No support No Firefox Android Full support 4 Opera Android No support No Safari iOS No support No Samsung Internet Android No support No

Full support
Full support
No support
No support