This page is Almost Ready

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

ms

Summary

The MathML ms element represents a string literal meant to be interpreted by programming languages and computer algebra systems.

Overview Table

DOM Interface
mathml

Examples

This example demonstrates a simple usage of the ms element:



<math>

  <ms lquote="„" rquote="“"> abc </ms>

</math>

Related specifications

MathML 3.0
W3C Recommendation

By default, string literals are displayed as enclosed by double quotes ("); by using the lquote and rquote attributes, you can set custom characters to display. Note that quotation marks should not be specified unless they are part of the string literal. The content of an <ms> element is not an ASCII string per se, but rather a sequence of characters and mglyph and malignmark elements.

Attributes

lquote
The opening quote character (depends on dir) to enclose the content. The default value is "&quot;".
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
rquote
The closing quote mark (depends on dir) to enclose the content. The default value is "&quot;".

Attributions

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