Computer Science, asked by PragyaTbia, 1 year ago

Explain Colspan and Rowspan .

Answers

Answered by Anonymous
45

Colspan or Column Span : The colspan attribute is used to determine the number of cell columns of the table this cell should span. In simple words, it is used to make a cell span more than one column or used to join columns together.

     Syntax : <td colspan="number">


For example :

  • <td colspan="2" <br/> </td> (Join two columns together)
  • <td colspan="4" <br/> </td> (Join four columns together)


Rowspan or Row Span : The rowspan attribute is used to determine the number of cell rows of the table this cell should span. In simple words, it is used to make a cell span more than one row.

     Syntax : <td rowspan="number">


For example :

  • <td rowspan="2" <br/> </td> (Join two rows together)
  • <td rowspan="4" <br/> </td> (Join four rows together)

Answered by birvakhamar
5
sometime a table cell is bigger than other its penis spread to more rows or columns that sells can be created with rowspan and colspan for instant
Similar questions