Tables cells can be merged across both columns and rows. Note that badly constructed tables can cause a page containing them to fail to render at all!
|
<table border="1" cellpadding="4"> <tr> <th colspan="2">Title</th> </tr> <tr> <td>cell 1</td> <td>cell 2</td> </tr> <tr> <td>cell 3</td> <td>cell 4</td> </tr> </table> |
|
||||||
|
<table border="1" cellpadding="4"> <tr> <th colspan="2">Title 1</th> </tr> <tr> <td rowspan="2">cell 1</td> <td>cell 2</td> </tr> <tr> <!--no cell--> <td>cell 3</td> </tr> </table> |
|
|||||
|
<table border="1" cellpadding="4"> <caption>This is a table caption</caption> <tr> <th colspan="2">Title 1</th> </tr> <tr> <td>cell 1</td> <td>cell 2</td> </tr> </table> |
|
||||
There are many sophisticated formatting features associated with tables, including alignment, cell-by-cell border definitions, background colors and more.
slide 14
|
"Mastering a Web Site" online course Created and maintained by Lorna Schmid and David Boldt. http://water.usgs.gov/usgs/training/webmaster/html_tables2.html Last modified: Wed Oct 15 15:50:36 EDT 2003 |