What do the HTML table attribute colspan do?
The colspan attribute defines the number of columns a cell should span.

The code:

<table border='1' width='50%'>
 <tr> <th>Month</th> <th>Income</th></tr>
 <tr> <td colspan='2'>January</td> <td>$1000</td> </tr>

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
HTML & CSS quizzes
Sign Up Now
or Subscribe for future quizzes