<calgroup> tag in html 5
The <colgropp> specifies one or more column in the table for formatting and changing style. The <colgroup> is use for applying the style in the entire column in the table.
Definition
The <colgropp> specifies one or more column in the table for formatting and changing style. The <colgroup> is use for applying the style in the entire column in the table. the <colgroup> must be child of a table element. For defined different properties in column with <colgroup> tag use <cal> tag.
Browser that supports <colgroup> tag
Internet explorer, mozilla firefox, Google chrome, opera and safari browsers
Example
<html>
<head>
<table>
<colgroup>
<col span="2" style="background-color: green" />
<col style="background-color: yellow" />
</colgroup>
<tr>
<th>
Id
</th>
<th>
Name
</th>
<th>
Salary
</th>
</tr>
<tr>
<td>
101
</td>
<td>
my name
</td>
<td>
$100
</td>
</tr>
</table>
</head>
</html>
|
Output


Read more about HTML 5 click here
Ask Your Question
Got a programming related question? You may want to post your question here
Programming Answers here