col
The HTML <col> element lends characteristics to a table column. This is a Void Element so it does not get a closing tag like most elements.
HTML CODE EXAMPLE
<table border="1">
<colgroup span="2">
<col style="background-color:#FFF8DD;">
<col style="background-color:#CCE6FF;">
</colgroup>
<tr>
<th>John</th>
<th>Bob</th>
</tr>
<tr>
<td>555-5555</td>
<td>888-8888</td>
</tr>
</table>
<colgroup span="2">
<col style="background-color:#FFF8DD;">
<col style="background-color:#CCE6FF;">
</colgroup>
<tr>
<th>John</th>
<th>Bob</th>
</tr>
<tr>
<td>555-5555</td>
<td>888-8888</td>
</tr>
</table>
John | Bob |
---|---|
555-5555 | 888-8888 |
Attributes for this element:
global attributes - global core attributes
See: list of global attributes
See: list of global attributes
Event handlers for this element:
global event handlers - global event handler attributes
See: list of global event handlers
See: list of global event handlers
Click Here To- Download code Link
0 Response to "col"
Post a Comment