Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
mohamedkhallouq
GitHub Repository: mohamedkhallouq/content
Path: blob/main/files/en-us/web/mathml/element/mspace/index.md
6529 views
---
title: <mspace> slug: Web/MathML/Element/mspace browser-compat: mathml.elements.mspace
---

{{MathMLRef}}

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:

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" style="background: lightblue;"/> <mn>2</mn> </math>

{{ EmbedLiveSample('mspace_example', 700, 200, "", "") }}

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also

  • {{ MathMLElement("mpadded") }}

  • {{ MathMLElement("mphantom") }}