<msub>

O elemento de MathML <msub> para adicionar um subscript a uma expressão.

Usa a seguinte sintaxe: <msub> base subscript </msub>.

Atributos

class, id, style
Para uso com stylesheets.
href
Usado para criar uma hiperligação para um URI.
mathbackground
A cor de fundo. Pode usar #rgb, #rrggbb e nomes de cores de HTML.
mathcolor
A cor do texto. Pode usar #rgb, #rrggbb e nomes de cores de HTML.
subscriptshift
O espaço mínimo entre o subscript e a linha de base da expressão, como um valor de comprimento.
Este atributo está obsoleto e será removido no futuro.

Exemplos

Exemplo: x1

Exemplo renderizado no seu navegador: X 1

<math>

  <msub>
    <mi>X</mi>
    <mn>1</mn>
  </msub> 

</math>

Especificações

Especificação Estado Comentário
MathML 3.0
The definition of 'msub' in that specification.
Recommendation Especificação atual
MathML 2.0
The definition of 'msub' in that specification.
Recommendation Especificação inicial

Compatibilidade

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
msubChrome No support NoEdge No support NoFirefox Full support 1IE No support NoOpera No support NoSafari Full support 6WebView Android No support NoChrome Android No support NoFirefox Android Full support 4Opera Android No support NoSafari iOS No support NoSamsung Internet Android No support No
hrefChrome No support NoEdge No support NoFirefox Full support 7IE No support NoOpera No support NoSafari No support NoWebView Android No support NoChrome Android No support NoFirefox Android Full support 7Opera Android No support NoSafari iOS No support NoSamsung Internet Android No support No
mathbackgroundChrome No support NoEdge No support NoFirefox Full support 4IE No support NoOpera No support NoSafari Full support 6WebView Android No support NoChrome Android No support NoFirefox Android Full support 4Opera Android No support NoSafari iOS No support NoSamsung Internet Android No support No
mathcolorChrome No support NoEdge No support NoFirefox Full support 4IE No support NoOpera No support NoSafari Full support 6WebView Android No support NoChrome Android No support NoFirefox Android Full support 4Opera Android No support NoSafari iOS No support NoSamsung Internet Android No support No
subscriptshiftChrome No support NoEdge No support NoFirefox Full support 1IE No support NoOpera No support NoSafari No support NoWebView Android No support NoChrome Android No support NoFirefox Android Full support 4Opera Android No support NoSafari iOS No support NoSamsung Internet Android No support No

Legend

Full support  
Full support
No support  
No support

Ver também