1. 程式人生 > >HTML之完整的table結構

HTML之完整的table結構

<table border="1" cellpadding="0" cellspacing="0" width="200">
	  <thead>
	    <tr style="background-color: gray;">
	      <th>Month</th>
	      <th>Savings</th>
	    </tr>
	  </thead>
	
	  <tfoot style="background-color: black;color: white;">
	    <tr>
	      <td>Sum</td>
	      <td>$180</td>
	    </tr>
	  </tfoot>
	
	  <tbody>
	    <tr>
	      <td>January</td>
	      <td>$100</td>
	    </tr>
	    <tr>
	      <td>February</td>
	      <td>$80</td>
	    </tr>
	  </tbody>
	</table>