The HTML <col> Tag is used to specify the general column properties for each column in the <colgroup> interval section of the Associate Hypertext Markup Language Table.

The <col> Tag is useful when you need to use the general rules for each column cell instead of applying one by one.

Note:- Note: The <col> Tag does not require a closing tag in HTML but it does require a closing </col> Tag in XHTML.


<!DOCTYPE html>
   <meta charset="utf-8">
      HTML col tag
<h1>This is HTML col Tag Example</h1>
<table border="1">
    <col span="1" style="background-color:red;">
    <col span="2" style="background-color:yellow;">
    <th>Roll No.</th>


Related Posts

One thought on “HTML Col Tag

Leave a Reply

Your email address will not be published. Required fields are marked *