The Wayback Machine - https://web.archive.org/web/20240118180846/https://www.geeksforgeeks.org/html5-mathml-rowspan-attribute/
Open In App
Related Articles

HTML5 MathML rowspan Attribute

Improve
Improve
Improve
Like Article
Like
Save Article
Save
Report issue
Report

This attribute holds the value that how many rows does the cell extend. This attribute is accepted by the <mtd> tag only. 

Syntax:

<element rowspan="non-negative-int">

Attribute Values:

  • non-negative-int: This value holds the integer that create the span by rows.

Below example illustrate the rowspan in HTML MathML:

Example:

HTML




<!DOCTYPE html> 
<html> 
  
<head> 
    <title>HTML5 MathML rowspan Attribute</title> 
</head> 
  
<body> 
    <center> 
        <h1 style="color:green"> 
            GeeksforGeeks 
        </h1> 
  
        <h3>HTML5 MathML rowspan Attribute</h3> 
  
        <math> 
            <mi>GeeksforGeeks</mi> 
            <mo>=</mo> 
            <mtable frame="solid" columnlines="dashed"> 
                <mtr mathbackground="green;"> 
                    <mtd>Course</mtd>
                    <mtd rowspan="4">Date</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 rowspan attribute are listed below:

  • Firefox

Learn to code easily with our course Coding for Everyone. This course is accessible and designed for everyone, even if you're new to coding. Start today and join millions on a journey to improve your skills!

Whether you're preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, GeeksforGeeks Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we've already empowered, and we're here to do the same for you. Don't miss out - check it out now!

Commit to GfG's Three-90 Challenge! Purchase a course, complete 90% in 90 days, and save 90% cost click here to explore.
Last Updated : 18 Nov, 2020
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads
Complete Tutorials