"mspace" - MathML Space Element

Q

How to use the MathML Space Element: "mspace"?

✍: FYIcenter.com

A

"mspace" is the MathML Space Element that allows you to specify a whitespace, including linebreak.

"mspace" element supports 2 useful attributes:

  • "width" - Specifies the width of the whitespace.
  • "linebreak" - Specifies how linebreak should handled. Valid values are: "auto" | "newline" | "nobreak" | "goodbreak" | "badbreak".

Here is an example of using the "mspace" element.

<math><mtext>Extra space:</mtext><mspace width="0.2in"/>
  <mtext>Linebreak:</mtext><mspace linebreak="newline"/>
  <mtext>End.</mtext></math>
    Extra space:
      Linebreak:
      End.

Note that the linebreak behavior may not be supported by some browsers.

 

Complex MathML Elements

"mtext" - MathML Text Element

Simple MathML Elements

⇑⇑ MathML (Mathematical Markup Language)

2025-03-29, 396🔥, 0💬