A Smarter Way to Learn HTML & CSS: Learn it faster. Remember it longer. by Myers Mark

A Smarter Way to Learn HTML & CSS: Learn it faster. Remember it longer. by Myers Mark

Author:Myers, Mark [Myers, Mark]
Language: eng
Format: azw3, epub
Tags: programming
Published: 2015-03-10T16:00:00+00:00


You can make table headings span rows, too. The code is…

<th scope="column" rowspan="[number of rows to span]">Whatever</th>

You can divide a table into three sections: a header, body, and footer. This helps screen readers, but doesn’t do anything for sighted users that you can’t do using the code I’ve already taught you. I’ll show you an example. You won’t be tested on it in the exercises.

This is the code.

<table>

<thead>

<tr>

<th></th>

<th>Gym</th>

<th>Exercise Room</th>

<th>Pool</th>

</tr>

</thead>

<tfoot>

<tr>

<th></th>

<th>3 activities</th>

<th>2 activities</th>

<th>1 activity</th>

</tr>

</tfoot>

<tbody>

<tr>

<th scope="row">1 pm</th>

<td>Dodge ball</td>

<td>Spinning</td>

<td rowspan="3">Water polo</td>

</tr>

<tr>

<th scope="row">2 pm</th>

<td>Spinning</td>

<td rowspan="2">Yoga marathon</td>

<tr>

<th scope="row">3 pm</th>

<td rowspan="3">Sack racing</td>

</tr>

</tbody>

</table>



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.