What is rowspan and colspan…?
merge row by rowspan
merge column by colspan
Rowspan and Colspan is an attribute which is used to merge cells
Rowspan mean combing rows based on rowspan value we given.
colspan mean combining colums based on colspan value we given.
sir we can add two rows and two colums in tablwe tag using it
merge diff column use colspan
sir we can merge two rows and make it one
rowspan use make a over multiple rows.
colspan use make a over multiple columns.
Rowspan is for merging rows and column span is for merging column.
The rowspan and colspan are the attributes of tag. The rowspan attribute is for merging rows and colspan attribute is for merging columns of the table in HTML.
Example:
these are used to specify the rows or columns a cell should merge
colspan is used to span cell over multiple column
rowspan is used to span cell over multiple row
by rowspan we can merge two or more rows.
by columnspan we can merge two or more columns.
rowspan attribute is used to merge rows in the table and colspan is used to merge the
column in a table
if in row we have same data in a cell we have to use rowpan. for making a single row. if in coloum we have same data in a cell we have to use coloumspan. for making a single coloum.
these are used to specify the rows or columns a cell should merge
rowspan: it can merge specified no of rows into one cell, colspan:it can merge specified no of columns into one cell
Rowspan and colspan represents the number of rows and columns to merge
rowspan and colspan are attributes means it will take the space of row or column.
example- if rowspan=“2” it will take 2 row space.
colspan attribute merge two or more colomns into a single column
rowspan attribute merges two or more rows into a single row