HTML <col> tag
HTML col tag:
This is a double tag. <col> This is the beginning tag and </col> this is the closing tag. This <col> element specifies column properties for each column into a <colgroup> tag. The HTML <col> element is useful for applying styles to total columns, as an alternative of rehearse the styles for every cell, for every row. One or more columns within a colgroup. You can set background color and applying style to entire columns use this tag. And Making style for table heading,cell and row.
<col>=attributes for table columns.
Copy this code and past your page.
Copy this code and past your page.
Example:
Result:
Year | investment | profit |
---|---|---|
1st Year | 1000$ | 200$ |
2nd Year | 777$ | 157$ |
3rd Year | 2000 | 4500$ |
Example:
Result:
Product | Company | Price |
---|---|---|
Samsang S7 | Samsang | $553b |
Support Browser
In HTML5 Most of the attributes in HTML 4.01 are not supported.
1. What is the <col>tag ?
2. What is the using for <col> tag ?
3. What is the definition of <col> tag ?
4. What is the <col> tag mean ?
5. How can You make background color and applying style to entire columns using HTML code. using HTML?
![]() Chrome | ![]()
Internet
Explorer
| Firefox | ![]() Opera | ![]() Safari | |
---|---|---|---|---|---|
<caption>
| Yes | Yes | Yes | Yes | Yes |
- Html Version Differenc: Differences Between HTML 5 and 4.01.
In HTML5 Most of the attributes in HTML 4.01 are not supported.
If you want make background color and applying style to entire columns using HTML code, Use HTML<col> element.
2. What is the using for <col> tag ?
3. What is the definition of <col> tag ?
4. What is the <col> tag mean ?
5. How can You make background color and applying style to entire columns using HTML code. using HTML?