What do the HTML table attribute colspan do?
Explanation
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>
</table>

Follow CodeGalaxy

Mobile Beta

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