<mspace>
Baseline
Widely available
*
This feature is well established and works across many devices and browser versions. It’s been available across browsers since January 2023.
* Some parts of this feature may have varying levels of support.
The <mspace> MathML element is used to display a blank space, whose size is set by its attributes.
Attributes
This element's attributes include the global MathML attributes as well as the following attributes:
depth-
A
<length-percentage>indicating the desired depth (below the baseline) of the space. height-
A
<length-percentage>indicating the desired height (above the baseline) of the space. width-
A
<length-percentage>indicating the desired width of the space.
Note:
For the depth, height, width attributes, some browsers may also accept legacy MathML lengths.
Examples
<math display="block">
<mn>1</mn>
<mspace depth="40px" height="20px" width="100px" />
<mn>2</mn>
</math>
mspace {
background: lightblue;
}
Technical summary
| Implicit ARIA role | None |
|---|
Specifications
| Specification |
|---|
| MathML Core # space-mspace |
Browser compatibility
| desktop | mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
mspace
|
|
|
|
|
|
|
|
|
|
|
|
|
depth
|
|
|
|
|
|
|
|
|
|
|
|
|
height
|
|
|
|
|
|
|
|
|
|
|
|
|
Named spaces (e.g. thinmathspace to mean 3/18em) for width, height and depth attributes
|
|
|
|
|
|
|
|
|
|
|
|
|
width
|
|
|
|
|
|
|
|
|
|
|
|
|
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
- Non-standard. Check cross-browser support before using.
- Deprecated. Not for use in new websites.
- See implementation notes.