# <mphantom>

The MathML `<mphantom>` element is rendered invisibly, but dimensions (such as height, width, and baseline position) are still kept.

## Attributes

class, id, style

Provided for use with stylesheets.

`displaystyle`

A Boolean value specifying whether more vertical space is used for displayed equations or, if set to `false`, a more compact layout is used to display formulas. The main effect is that larger versions of operators are displayed, when `displaystyle` is set to `true`. See also `movablelimits` on `<mo>`.

mathbackground

The background color. You can use `#rgb`, `#rrggbb` and HTML color names.

## Examples

Sample rendering:

Rendering in your browser: $x+\phantom{y+}z$

``````<math>

<mrow>
<mi> x </mi>
<mo> + </mo>
<mphantom>
<mi> y </mi>
<mo> + </mo>
</mphantom>
<mi> z </mi>
</mrow>

</math>
``````

## Browser compatibility

BCD tables only load in the browser

• `<mspace>`
• `<mpadded>`