HTML5 MathML rowspacing Attribute
Last Updated :
16 Nov, 2020
Improve
The MathML rowspacing attribute in HTML5 is used to specify the spacing between the rows of a table. The length value can be specified using any CSS length unit. This attribute can be used by the <mtable> tag.
Syntax:
<element rowspacing="number">
Attributes Value: This attribute has a single value as mentioned above and described below:
- number: This value can be used to set the spacing between the rows of the table to any size.
The example below illustrates the MathML rowspacing attribute:
Example:
<!DOCTYPE html>
<html>
<body>
<center>
<h1 style="color:green">
GeeksforGeeks
</h1>
<h3>
HTML5 MathML rowspacing Attribute
</h3>
<math>
<mi>GeeksforGeeks</mi>
<mo>=</mo>
<mtable frame="solid" columnlines="dashed"
rowspacing="2">
<mtr mathbackground="green;">
<mtd>Course</mtd>
<mtd>Fee</mtd>
</mtr>
<mtr>
<mtd>
<mi>C++ STL</mi>
</mtd>
<mtd>
<mi> 1499</mi>
</mtd>
</mtr>
<mtr>
<mtd>
<mi>Placement 100 </mi>
</mtd>
<mtd>
<mi>9999 </mi>
</mtd>
</mtr>
<mtr>
<mtd>
<mi>DSA Foundation </mi>
</mtd>
<mtd>
<mi>7999</mi>
</mtd>
</mtr>
</mtable>
</math>
</center>
</body>
</html>
Output:

Supported Browsers: The browsers supported by HTML5 MathML rowspacing attribute are listed below:
- Firefox