Skip to content

Commit

Permalink
Feat add example to MathML mtd page using example given in w3c mathml… (
Browse files Browse the repository at this point in the history
#32532)

Feat add example to MathML mtd page using example given in w3c mathml core
  • Loading branch information
mozart-maia authored Mar 4, 2024
1 parent ad2254c commit a66ead0
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions files/en-us/web/mathml/element/mtd/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,43 @@ Some browsers may also support the following attributes:
- : Specifies the vertical alignment of this cell and overrides values specified by {{ MathMLElement("mtable") }} or {{ MathMLElement("mtr") }}.
Possible values are: `axis`, `baseline`, `bottom`, `center` and `top`.

## Examples

### Matrix using mtable, mrow, mtr and mtd

```html
<math display="block">
<mfrac>
<mi>A</mi>
<mn>2</mn>
</mfrac>
<mo>=</mo>
<mrow>
<mo>(</mo>
<mtable>
<mtr>
<mtd><mn>1</mn></mtd>
<mtd><mn>2</mn></mtd>
<mtd><mn>3</mn></mtd>
</mtr>
<mtr>
<mtd><mn>4</mn></mtd>
<mtd><mn>5</mn></mtd>
<mtd><mn>6</mn></mtd>
</mtr>
<mtr>
<mtd><mn>7</mn></mtd>
<mtd><mn>8</mn></mtd>
<mtd><mn>9</mn></mtd>
</mtr>
</mtable>
<mo>)</mo>
</mrow>
</math>
```

{{EmbedLiveSample('Alignment with row number')}}

## Specifications

{{Specifications}}
Expand Down

0 comments on commit a66ead0

Please sign in to comment.