'colspan' sets how many columns in a table a particular cell can span : table colspan « Tags « HTML / CSS






'colspan' sets how many columns in a table a particular cell can span

 
    
<HTML>
<BODY>
<table bgcolor="white" width="600" border="1">
   <tr>
      <th colspan="3">tHeader (3 cells spanned)</th>
      <th height="79" >Second Header</th>
   </tr>
   <tr>
      <td height="79">Cell 1 content</td>
      <td height="79">Cell 2 content</td>
      <td height="79">Cell 3 content</td>
      <td height="79">Cell 4 content</td>
   </tr>
</table>
</BODY>
</HTML>  
    
      
        
  








Related examples in the same category

1.Spanning columns
2.Using colspan and rowspan