HTML <xxx> Tag

 

ATTENTION: THIS PAGE IS Valid HTML 5 AND IS BEST VIEWED WITH HTML 5 - Please upgrade your browser or download one of the HTML 5 compatible browsers such as Mozilla Firefox, Chrome or Opera. See detecting HTML 5 for more information.

top


mobile

MathML in HTML 5


Math Tag Syntax

Rules for coding the MathML tags

<math> Tag Attributes

Attributes of the <math> tag
global attributes In addition to the personal attributes of the <xxx> tag below, any of the common HTML attributes can also be coded.

<math> Tag Examples

Examples of the math tag in HTML 5
<math mode="display" xmlns="http://www.w3.org/1998/Math/MathML">
  <mrow>
    <munder>
      <munder>
        <mrow>
          <mover>
            <mover>
              <mrow>
                <mi style="font-family: Verdana, sans-serif">style</mi>
              </mrow>
              <mo style="font-size:smaller">&#xFE37;</mo>
            </mover>
            <mtext style="font-size:larger; font-weight: bold">name</mtext>
          </mover>
          <mo>=</mo>
          <mover>
            <mover>
              <mrow>
                <ms style="font-family: Verdana, sans-serif">font-weight: bold</ms>
                  <!-- <ms> automatically adds quotes -->
              </mrow>
              <mo style="font-size:smaller">&#xFE37;</mo>
            </mover>
            <mtext style="font-size:larger; font-weight: bold">value</mtext>
          </mover>
         </mrow>
        <mo style="font-size:smaller">&#xFE38;</mo>
      </munder>
      <mtext style="font-size:larger; font-weight: bold">attribute</mtext>
    </munder>
  </mrow>
</math>
style name = font-weight: bold value attribute

Note: Since support for MathML depends on the browser and available fonts, the appearance of the working code above varies greatly. In Firefox on Windows with the Fonts for MathML-enabled Mozilla installed, the code above looks like this:

picture of how the MathML code looks in Firefox

Changes in HTML 5 - MathML

What's new in HTML 5

Support for MathML is one of the new features of HTML 5.

Differences between HTML 5 and earlier versions of HTML

MathML was not supported in older versions of HTML.


Valid HTML 5