mathml element
<mspace>
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-percentageindicating the desired depth (below the baseline) of the space.
- : A
height- : A
length-percentageindicating the desired height (above the baseline) of the space.
- : A
width- : A
length-percentageindicating the desired width of the space.
- : A
[!NOTE] For the
depth,height,widthattributes, 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;
}
Interactive exampleOpen the canonical MDN source to run this embedded demo.
Technical summary
| Implicit ARIA role | None |
|---|
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.
See also
mpaddedmphantom