-->

HTML col tag

HTML <col> tag

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.




Example:

Result:

Year investment profit
1st Year 1000$ 200$
2nd Year 777$ 157$
3rd Year 2000 4500$


Example:

Result:
                                                   
ProductCompanyPrice
Samsang S7Samsang$553b


Support Browser
HTML <col> tag
Browser
HTML <col> tag
Google 
 Chrome  
HTML <col> tag
Internet
Explorer
HTML <col> tag
Firefox
HTML <col> tag
Opera  
HTML <col> tag
 Safari   
<caption>
YesYes 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.




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?
Facebook Comments

Follow by Email