The HTML <Colgroup> Tag associate degree specifies the cluster of columns within the HTML table. It uses one’s parent instrumentality or multiple <col> gap components to use completely different properties in an associate degree HTML table.

Note:- The <Colgroup> Tag should be used after the <caption> with the <table> part and before the <thead> or <tbody> elements.


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


Related Posts

Leave a Reply

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