MDN self-hosted library · e01.org

<mprescripts>

The <mprescripts> MathML element is used within an mmultiscripts element to indicate the start of the pre-scripts elements (subscripts and superscripts that are placed before the base expression).

no runnable cells mathml-element upstream source

The <mprescripts> MathML element is used within an mmultiscripts element to indicate the start of the pre-scripts elements (subscripts and superscripts that are placed before the base expression).

Attributes

This element supports global MathML attributes.

Example

The first <mmultiscripts> child element becomes a base expression. The remaining children by default become post-scripts elements (a, b). <mprescripts> acts as a separator, and children after it become pre-scripts elements (c, d).

```css hidden html, body { height: 100%; }

body { display: grid; place-items: center; font-size: 2rem; }


```html-nolint
<math display="block">
  <mmultiscripts>
    <mi>X</mi> <!-- base expression -->
    <mi>a</mi> <!-- post-sub-script -->
    <mi>b</mi> <!-- post-sup-script -->
    <mprescripts />
    <mi>c</mi> <!-- pre-sub-script -->
    <mi>d</mi> <!-- pre-sup-script -->
  </mmultiscripts>
</math>

700

Technical summary

Implicit ARIA role None

Specifications

Browser compatibility

See also

  • msub (Subscript)
  • msup (Superscript)
  • msubsup (Subscript-superscript pair)