Code and Output for colgroup:

Code:

    <!DOCTYPE html>
    <html>
    <head>
      <title>HTML Example</title>
    </head>
    <body>
      <h1>App Genesis soft solutions pvt ltd</h1>
      <h1>The col element</h1>
    <table>
    <colgroup>
    <col span="2" style="background-color:red">
    <col style="background-color:yellow">
  </colgroup>
  <tr>
    <th>ISBN</th>
    <th>Title</th>
    <th>Price</th>
  </tr>
  <tr>
  <td>3476896</td>
  <td>My first HTML</td>
  <td>$53</td>
  </tr>
  <tr>
  <td>5869207lt;/td>
  <td>My first CSS</td>
  <td>$49</td>
  </tr>
  </table>
    </body>
    </html>
  

Output:

App Genesis soft solutions pvt ltd

The col element

ISBN Title Price
3476896 My first HTML $53
5869207 My first CSS $49