HTML5 MathML
HTML5 se puede utilizar en los elementos MathML documentos correspondientes etiqueta es <math> ... </ math>.
MathML es el Mathematical Markup Language, es un XML (un subconjunto del lenguaje de marcado generalizado estándar) estándar basado para escribir símbolos matemáticos y fórmulas de lenguaje de marcas en Internet.
Nota: La mayoría de los navegadores soportan la etiqueta MathML, si su navegador no soporta esta etiqueta, se puede utilizar la última versión de Firefox o Safari navegador.
Ejemplos de MathML
El siguiente es un simple ejemplo MathML:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>本教程(w3big.com)</title> </head> <body> <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> <msup><mi>a</mi><mn>2</mn></msup> <mo>+</mo> <msup><mi>b</mi><mn>2</mn></msup> <mo>=</mo> <msup><mi>c</mi><mn>2</mn></msup> </mrow> </math> </body> </html>
La figura operativo resultados, como sigue:
En el siguiente ejemplo se agrega algunos operadores:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>本教程(w3big.com)</title> </head> <body> <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> <mrow> <msup> <mi>x</mi> <mn>2</mn> </msup> <mo>+</mo> <mrow> <mn>4</mn> <mo></mo> <mi>x</mi> </mrow> <mo>+</mo> <mn>4</mn> </mrow> <mo>=</mo> <mn>0</mn> </mrow> </math> </body> </html>
La figura operativo resultados, como sigue:
El siguiente ejemplo es una matriz de 2 × 2, se puede ver el efecto en Firefox 3.5 o superior:
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>本教程(w3big.com)</title> </head> <body> <math xmlns="http://www.w3.org/1998/Math/MathML"> <mrow> <mi>A</mi> <mo>=</mo> <mfenced open="[" close="]"> <mtable> <mtr> <mtd><mi>x</mi></mtd> <mtd><mi>y</mi></mtd> </mtr> <mtr> <mtd><mi>z</mi></mtd> <mtd><mi>w</mi></mtd> </mtr> </mtable> </mfenced> </mrow> </math> </body> </html>
La figura operativo resultados, como sigue: