您好,欢迎来到二三四教育网。
搜索
您的当前位置:首页HTML5 MathML

HTML5 MathML

来源:二三四教育网

HTML5可以在文档中使用 MathML元素,对应的变迁是<math>....</math>
MathML是数学标记语言,是一种基于XML的标准,用于互联网上书写数学符号和公式的置标语言

注意:大部分浏览器都支持MathML标签,如果你的浏览器不支持该标签,可以使用最新版火狐或 Safari浏览器查看

<body>

  <math 
    
     <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>
运行结果: a2 + b2 = c2

<body>

  <math 
    
     <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>
运行结果: x 2 + 4 ⁢ x + 4 = 0

     <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>

Copyright © 2019- how234.cn 版权所有 赣ICP备2023008801号-2

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务