Le meilleur didacticiel HTML5 MathML en 2024, dans ce didacticiel, vous pouvez apprendre Des exemples de MathML,

HTML5 MathML

HTML5 peut être utilisé dans les éléments MathML document tag correspondant est <math> fr. </ math>.

MathML est le langage de balisage mathématique, est un XML (un sous-ensemble de la Standard Generalized Markup Language) standard à base d'écriture des symboles mathématiques et le langage des formules de balisage sur Internet.

Remarque: La plupart des navigateurs prennent en charge MathML tag, si votre navigateur ne supporte pas cette balise, vous pouvez utiliser la dernière version de Firefox ou Safari.


Des exemples de MathML

Ce qui suit est une instance MathML simple:

<!DOCTYPE html>
<html>
   <head>
      <meta charset="UTF-8">
      <title>本教程(w3write.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> 

Essayez »

La figure exploitation des résultats, comme suit:

L'exemple suivant ajoute certains opérateurs:

<!DOCTYPE html>
<html>
   <head>
      <meta charset="UTF-8">
      <title>本教程(w3write.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> 

Essayez »

La figure exploitation des résultats, comme suit:

L'exemple suivant est une matrice 2 × 2, vous pouvez voir l'effet dans Firefox 3.5 et au-dessus:

<!DOCTYPE html>
<html>
   <head>
      <meta charset="UTF-8">
      <title>本教程(w3write.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> 

Essayez »

La figure exploitation des résultats, comme suit:

HTML5 MathML
10/30