Article object
Tables with cell or row shading
Element or context:
<table>
Note
The following markup is ONLY to be used when shading is scientifically meaningful. CSP should give instructions on when to use this; if in doubt, please ask your contact at CSP.
Requirements:
- Set @style on <table> to "no-altrow-shading".
- Set @style on <tr> (if shading applies to an entire row) or <td> (if shading applies only to a cell) to "shade1" or "shade2". "shade1" is lighter than "shade2" and direction will be given from CSP on which to use.
Example (for a visual example of this, see Table 4 in this PDF):
<table-wrap id="tab4">
<label>Table 4.</label>
<caption>
<p>This is an example of a table with paragraph text in table cells and shading in a row or cell.</p>
</caption>
<table frame="hsides" style="no-altrow-shading">
<thead>
<tr>
<th>Topic</th>
<th>Question</th>
<th>Testing</th>
</tr>
</thead>
<tbody>
<tr>
<td/>
<td><p><bold>1.</bold> It is important to prevent the extinction of wild plants and animals in Canada.</p></td>
<td><p>Agreement in principle with conservation of endangered species.</p></td>
</tr>
<tr>
<th colspan="3">
<bold>Individual encounters</bold>
</th>
</tr>
<tr>
<td/>
<td><p><bold>2.</bold> Landowners have a moral obligation to not harm endangered plants and animals on their property.</p></td>
<td><p>Agreement in principle with responsibility of individuals not to harm endangered species.</p></td>
</tr>
<tr style="shade1">
<td/>
<td><p><bold>3a.</bold> The Jefferson salamander is endangered, and only found in a few locations in Canada. If a landowner finds a Jefferson salamander on his or her property, they should leave it alone and not harm it.</p></td>
<td><p>Agreement with a specific scenario involving personal encounter with an endangered species (conservation).</p></td>
</tr>
<tr style="shade1">
<td/>
<td><bold>OR</bold></td>
<td/>
</tr>
<tr style="shade1">
<td/>
<td><p><bold>3b.</bold> A landowner should have the right to capture, move or remove any plant or animal he or she encounters on his or her property, even if this could result in destroying the plant or animal in the process.</p></td>
<td><p>Agreement with idea that landowners are able to control species found on their property at their discretion (utilitarian).</p></td>
</tr>
<tr>
<th colspan="3">
<bold>Private property</bold>
</th>
</tr>
<tr>
<td/>
<td><p><bold>4.</bold> t is necessary for the government to put limits on private property rights to protect endangered plants and animals.</p></td>
<td><p>Agreement in principle with the need for regulations of private property use.</p></td>
</tr>
<tr>
<td/>
<td><p><bold>5a.</bold> The red mulberry is one of the most endangered trees in Canada, found at only 21 sites in southern Ontario. If a landowner has red mulberry trees on their property, they should not be permitted to build new buildings, create new trails, or do any other activity on their land if it involves cutting down or harming the trees.</p></td>
<td style="shade2"><p>Agreement with a specific scenario involving development of private property (conservation).</p></td>
</tr>
<tr>
<td/>
<td><bold>OR</bold></td>
<td/>
</tr>
<tr>
<td/>
<td><p><bold>5b.</bold> The red mulberry is one of the most endangered trees in Canada, found at only 21 sites in southern Ontario. Despite this, it would be unfair to restrict a landowner’s ability to build new buildings, create new trails, or otherwise develop his or her property simply because red mulberry trees are growing there, and may need to be cut down in the process.</p></td>
<td><p>Agreement with alternative view of the same scenario (utilitarian).</p></td>
</tr>
</tbody>
</table>
</table-wrap>