Basic HTML

Advance HTML

HTML Tags Reference

HTML Code Generator


HTML <col> Tag


HTML <col> tag specifies a each column within a <colgroup> element in table.

HTML <col> tag specifies a table column in table. <col> tag is a attributes for table columns.


Example-Code:

<table width="175" border="1">
  <colgroup span="2">
    <col width="65"> </col>
    <col width="110"> </col>
  </colgroup>
  <tr>
    <th>Day</th>
    <th>Type</th>
  </tr>
  <tr>
    <td>Monday</td>
    <td>nice day</td>
  </tr>
  <tr>
    <td>Thusday</td>
    <td>good day</td>
  </tr>
 </table> 
Online Try This Code Your Self....   »

Example-Result:

Day Type
Monday nice day
Thusday good day

<col> Tag Attributes

<col> tag supported following attributes.:

Attributes Value Description
align "left"
"right"
"center"
"justify"
Specify column align.
span "Number" define the number of columns a col tag
width "Pixel" Specifies the width of a col tag.

Dynamic Attributes

<col> tag supported following Dynamic attributes.:

Attributes Value Description
id ID_Name Declared unique id for the element.
class Predefined_Class Used in Cascading Style Sheet (CSS).
style style_Attributes CSS code specify inline the HTML element is presented.
title Title_Description Display on the "tooltip" for your elements.

Event Attributes

<col> tag supported following Event attributes.:

Attributes Value Description
onclick "Java_script" clicked on object when script tobe run.
ondblclick "Java_script" double click on object when script tobe run.
onkeydown "Java_script" key is pressed when script tobe run.
onkeypress "Java_script" key is pressed over element then released when script tobe run.
onkeyup "Java_script" key is released over element when script tobe run.
onmousedown "Java_script" mouse button was pressed over an element when script tobe run.
onmouseout "Java_script" mouse pointer release over an element when script tobe run.
onmousemove "Java_script" run mouse pointer moved when script tobe run.
onmouseover "Java_script" run mouse pointer move over when script tobe run.
onmouseup "Java_script" mouse button is released when script tobe run.