show-notice
hide-notice

Thursday 8 August 2013

HTML col Tag


Introduction:

The HTML col tag is used for specifying column properties for each column within a colgroup.You would normally only use this tag if the values for each column is different. Otherwise, you can specify the properties as part of the colgroup tag.

 
Example:
<html>
<head>
<title>HTML col Tag</title>
</head>
<body>
<table border="1">
  <colgroup span="3">
    <col width="50"></col>
    <col width="100"></col>
    <col width="20"></col>
   </colgroup>
   <tr>
    <td>col 1</td>
    <td>col 2</td>
    <td>col 2</td>
   </tr>
</table>
</body>
</html>

SHARE THIS POST   

0 comments :

Post a Comment

Design by Gohilinfotech | www.gohilinfotech.blogspot.com