HTML Attributes reference

"colspan" - html Attribute

  • Specifies the number of columns spanned by the current cell. The value zero ("0") means that the cell spans all columns from the current column to the last column of the column group (COLGROUP) in which the cell is defined.
  • The default value of this attribute is one ("1").

Value(s): number

Attribute "colspan" example:
<table   border='10'
cellpadding='10' cellspacing='10' >
  <tr>
    <th >Browser</th>
    <th >accesskey usage</th>
    <th colspan='2' >Remarks</th>
  </tr>
  <tr>
    <td align='center'  ><img
src="../images/Firefox.png" alt="" border="0"
title="Firefox"/></td>
    <td ></td>
    <td colspan='2'>Shift + Alt + accesskey will set
the focus on the element and execute any link (a) if exist.</td>
  </tr>
  <tr>
    <td align='center' ><
img src="../images/IE.png" alt="" border="0"
title="Internet explorer" /></td>
    <td >Alt + accesskey</td>
    <td >Set the focus on the element.
       Press enter to execute any link.</td>
  </tr>
</table>
Used in the element(s):
Elements Description
td This element defines a data cell in a table.
th This element defines a header cell in a table.

© 2010 by Finnesand Data. All rights reserved.
This site aims to provide FREE programming training and technics.
Finnesand Data as site owner gives no warranty for the correctness in the pages or source codes.
The risk of using this web-site pages or any program codes from this website is entirely at the individual user.