This page is Ready to Use

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

mi

Summary

The MathML mi element indicates that the content should be rendered as an identifier such as function names, variables or symbolic constants. You can also have arbitrary text in it to mark up terms.

Overview Table

DOM Interface
mathml

Examples

This example demonstrates a simple usage of the mi element:



<math>

  <mi> y </mi>

  <mi> sin </mi>

  <mi mathvariant="monospace"> x </mi>

  <mi mathvariant="bold"> π </mi>

</math>

Related specifications

MathML 3.0
W3C Recommendation

Attributes

mathsize
The size of the content. Possible values are:
  • small: Font is rendered smaller than the current font size.
  • normal: Equivalent to 100% or 1em.
  • big: Font is rendered larger than the current font size.
  • or a custom length.
mathvariant
This logical class of the identifier, which varies in typography. That is, although the names suggest the typographic style for the class, semantically, items with the same class are treated “the same” within an expression, which might or might not involve displaying them with the named typography. The following values are allowed:
  • normal (Default value for more than one character)
  • bold
  • italic (Default value for a single character)
  • bold-italic
  • double-struck
  • bold-fraktur
  • script
  • bold-script
  • fraktur
  • sans-serif
  • bold-sans-serif
  • sans-serif-italic
  • sans-serif-bold-italic
  • monospace
  • initial
  • tailed
  • looped
  • stretched

Attributions

  • Mozilla Developer Network cc-by-sa-small-wpd.svg: Article