What is Colspan | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 14

What is Colspan

27th Dec 2016, 10:00 AM
Kushagra Pankajrai Bothra
Kushagra Pankajrai Bothra - avatar
11 Answers
+ 21
colspan is an attribute used inside table element with TD tags. it is generally used when a value is common in any no. of consecutive columns in the same row. For e.g. <tr><Td colspan="2">DATA HERE</TD></tr> here the value of colspan is 2. That means the cell of the table in which it has been given will take the space of 2 columns. Or simply it will skip the cell of the next column in the corresponding row. on the other hand it will be common in the 2 columns. NOTE - 2 specified here is the no. of COLUMNS which is variable.
28th Dec 2016, 5:21 AM
Siddharth Saraf
+ 2
Column span measured in Rows
27th Dec 2016, 10:04 AM
Valen.H. ~
Valen.H. ~ - avatar
+ 2
Colspan used for expanding cells from same row of a table
7th Feb 2017, 5:32 AM
Aliasghar Mohebbi
Aliasghar Mohebbi - avatar
+ 1
an attribute used to give a table element more cells depending on the number assigned to it. for example, colspan ="3" will assign 3cells to the given table element
7th Feb 2017, 6:34 PM
KUSADE GBENGA ADEBAYO
KUSADE GBENGA ADEBAYO - avatar
0
জানেন না তো বলছেন কেন
15th Jan 2017, 4:17 PM
akash roy
akash roy - avatar
0
Colspan means the gape between two tables
28th Jan 2017, 4:05 PM
Asish kumar panigrahi
Asish kumar panigrahi - avatar
0
it is used to increase the size of a row in column
4th Feb 2017, 2:42 PM
vishal
0
It is used to merge on combines two or more column
7th Feb 2017, 4:58 PM
sayali sawant
0
It is used to merge on combines two or more column
7th Feb 2017, 4:58 PM
sayali sawant
- 1
横跨度,sorry I only can wrote in Chinese
28th Dec 2016, 10:02 AM
Lily
Lily - avatar
- 1
it's an attribute for HTML element <td>, telling that this column would take up many columns
29th Dec 2016, 1:50 AM
william