HTML5 MathML <mspace> Tag Last Updated : 04 Oct, 2024 Comments Improve Suggest changes Like Article Like Report The HTML5 MathML <mspace> tag is used to insert customizable space within a mathematical expression. It allows you to control the width, height, and depth of the space for precise formatting. The size of the blank space has to be mentioned in the attributes. Syntax<mspace attributes="value"/>Attributes This tag accepts some attributes which are listed below: AttributeDescriptionclass|id|styleHolds the styles of the child elements.mathbackgroundHolds the background color value for math expressions.depthHolds the desired depth below the baseline.widthHolds the width value length.heightHolds the desired height above the baseline.linebreakDefines line breaks inside a line; possible values: auto, newline, nobreak, goodbreak, badbreak.Below example illustrates the MathML <mspace> tag in HTML5: Example: In this example we demonstrates the usage of the HTML5 MathML <mfenced> and <mspace> tags to display a mathematical expression. It includes superscripts and adjustable spacing between elements. html <!DOCTYPE html> <html> <head> <title>HTML5 MathML mfenched tag</title> </head> <body> <center> <h1 style="color:green"> GeeksforGeeks </h1> <h3>HTML5 MathML <mspace> tag</h3> <math> <mfenced open="(" close=")" separators=""> <mrow> <msup> <mi>x</mi> <mn>2</mn> </msup> <mspace depth="20px" height="40px" /> <mo>+</mo> <msup> <mi>y</mi> <mn>2</mn> </msup> <mo>=</mo> <msup> <mi>z</mi> <mn>2</mn> </msup> </mrow> </mfenched> </math> </center> </body> </html> Output:Supported Browsers The browsers supported by HTML5 MathML <space> tag are listed below: Firefox Create Quiz Comment S skyridetim Follow 0 Improve S skyridetim Follow 0 Improve Article Tags : Web Technologies HTML HTML5 HTML-Tags HTML-MathML +1 More Explore HTML BasicsHTML Introduction4 min readHTML Editors4 min readHTML Basics7 min readStructure & ElementsHTML Elements4 min readHTML Attributes7 min readHTML Headings3 min readHTML Paragraphs3 min readHTML Text Formatting4 min readHTML Block and Inline Elements3 min readHTML Charsets4 min readListsHTML Lists3 min readHTML Ordered Lists5 min readHTML Unordered Lists4 min readHTML Description Lists3 min readVisuals & MediaHTML Colors11 min readHTML Links Hyperlinks2 min readHTML Images7 min readHTML Favicon4 min readHTML Video4 min readLayouts & DesignsHTML Tables9 min readHTML Iframes4 min readHTML Layout4 min readHTML File Paths3 min readProjects & Advanced TopicsHTML Forms4 min readHTML5 Semantics5 min readHTML URL Encoding4 min readHTML Responsive Web Design11 min readTop 10 Projects For Beginners To Practice HTML and CSS Skills8 min readTutorial ReferencesHTML Tags - A to Z List5 min readHTML Attributes Complete Reference8 min readHTML Global Attributes5 min readHTML5 Complete Reference8 min readHTML5 MathML Complete Reference3 min readHTML DOM Complete Reference15+ min readHTML DOM Audio/Video Complete Reference2 min readSVG Element Complete Reference5 min readSVG Attribute Complete Reference8 min readSVG Property Complete Reference7 min readHTML Canvas Complete Reference4 min read Like