HTML5 MathML

HTML5 MathML <mlabeledtr> Tag

The <mlabeledtr> tag is a special table row inside an <mtable> whose first child acts as a label - typically an equation number - placed to one side of the row.


Definition and usage

The <mlabeledtr> element works like <mtr> but reserves its first child cell as a label. The remaining cells form the actual row content. This is commonly used to place a numbered tag, such as (1), beside a numbered equation.

Syntax

<mtable>
  <mlabeledtr>
    <mtd><!-- label --></mtd>
    <mtd><!-- row content --></mtd>
  </mlabeledtr>
</mtable>

Example

A numbered equation
<math display="block">
  <mtable>
    <mlabeledtr>
      <mtd><mtext>(1)</mtext></mtd>
      <mtd>
        <mrow><mi>a</mi><mo>+</mo><mi>b</mi><mo>=</mo><mi>c</mi></mrow>
      </mtd>
    </mlabeledtr>
  </mtable>
</math>

The first <mtd> holds the label (1), and the second holds the equation a + b = c.

⚠️

The <mlabeledtr> element is not part of MathML Core and has poor browser support. For numbered equations, a plain <mtable> with a label cell or CSS is more portable.

Ready to use your HTML skills?

Find web development internships and fresher jobs across India.

Browse Web Dev Internships