what is rowspan and colspan ? Define its syntax with example (show output also)
Answers
Answered by
6
Answer:
Rowspan
HTML | rowspan Attribute.
The rowspan attribute in HTML specifies the number of rows a cell should span.
That is if a row spans two rows, it means it will take up the space of two rows in that table.
It allows the single table cell to span the height of more than one cell or row.
Colspan
The colspan attribute in HTML specifies the number of columns a cell should span.
It allows the single table cell to span the width of more than one cell or column.
It provides the same functionality as “merge cell” in the spreadsheet program like Excel.
Similar questions