
- HTML Tutorial
- HTML - Home
- HTML - Overview
- HTML - Basic Tags
- HTML - Elements
- HTML - Attributes
- HTML - Formatting
- HTML - Phrase Tags
- HTML - Meta Tags
- HTML - Comments
- HTML - Images
- HTML - Tables
- HTML - Lists
- HTML - Text Links
- HTML - Image Links
- HTML - Email Links
- HTML - Frames
- HTML - Iframes
- HTML - Blocks
- HTML - Backgrounds
- HTML - Colors
- HTML - Fonts
- HTML - Forms
- HTML - Embed Multimedia
- HTML - Marquees
- HTML - Header
- HTML - Style Sheet
- HTML - Javascript
- HTML - Layouts
- HTML References
- HTML - Tags Reference
- HTML - Attributes Reference
- HTML - Events Reference
- HTML - Fonts Reference
- HTML - ASCII Codes
- ASCII Table Lookup
- HTML - Color Names
- HTML - Entities
- HTML - Fonts Ref
- HTML - Events Ref
- MIME Media Types
- HTML - URL Encoding
- Language ISO Codes
- HTML - Character Encodings
- HTML - Deprecated Tags
How to set the number of rows a table cell should span in HTML?
Use the rowspan attribute to set the number of rows a table cell should span. To merge cells in HTML, use the colspan and rowspan attribute. The rowspan attribute is for number of rows a cell should span, whereas the colspan attribute is for number of columns a cell should span.
Example
<!DOCTYPE html> <html> <head> <style> table, th, td { border: 1px solid black; width: 100px; height: 50px; } </style> </head> <body> <h1>Heading</h1> <table> <tr> <th colspan = "2"></th> <th></th> </tr> <tr> <td></td> <td></td> <td rowspan = "2"></td> </tr> <tr> <td></td> <td></td> </tr> </table> </body> </html>
- Related Articles
- How to specify the number of columns a table cell should span in HTML?
- Set the number of columns to span in HTML
- How to set cell padding in HTML?
- How to set the color of a textView span in android?
- Set how many columns an element should span across with CSS
- Set how many columns an element should span across with JavaScript.
- How to create table rows & columns in HTML?
- How do we display a table cell in HTML
- How to set cell width and height in HTML?
- How to count number of rows in a table with jQuery?
- How to set table width in HTML?
- How to count the number of rows in a table in Selenium with python?
- How to set the color of TextView span in Android using Kotlin?
- Easiest way to get number of rows in a MySQL table?
- HTML DOM Table rows Collection

Advertisements