Page 235 - DCAP109_GRAPHIC_TOOLS
P. 235
Graphic Tools
Notes <td>First cell in first table. The cell to the right has the second table
in it.</td>
<td>
<table>
<tr><td>nested table</td></tr>
<tr><td>nested table</td></tr>
</table>
</td>
</tr>
</table>
Colgroup
This tag specifies a group of one or more columns in a table for formatting. It is useful for
applying styles to entire columns, instead of repeating the styles for each cell, for each row.
Notes The <colgroup> tag must be a child of a <table> element, after any <caption>
elements and before any <thead>, <tbody>, <tfoot>, and <tr> elements.
Example: A
<html>
<body>
<table border=”1">
<colgroup>
<col span=”2" style=”background-color:red”>
<col style=”background-color:yellow”>
</colgroup>
<tr>
<th>ISBN</th>
<th>Title</th>
<th>Price</th>
228 LOVELY PROFESSIONAL UNIVERSITY