<mi>

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.

Attributes

This element accepts the global MathML attributes. For <mi> elements that contain a single character, the default value of the mathvariant attribute is italic.

Examples

<math>
  <!-- Multiple characters, default mathvariant is "normal". -->
  <mi>sin</mi>

  <!-- Single character, default mathvariant is "italic". -->
  <mi>y</mi>

  <!-- Overriding default mathvariant. -->
  <mi mathvariant="normal">F</mi>
</math>

Specifications

Specification
MathML Core
# identifier-mi

Browser compatibility

BCD tables only load in the browser