오늘은 HTML에서 Table과 Form을 배웠다.
내용이 정말 많다...
처음 배우는 개념들이라 헷갈려서 복습이 필수일듯!
<table>
</table>
< table >태그 안에 표의 모든 데이타가 들어간다.
표의 구성요소에는 크게
의 세가지이다.
<table>
<tr></tr>
<tr></tr>
</table>
<table>
<tr>
<td>73</td>
<td>81</td>
</tr>
</table>
73 | 81 |
<table>
<tr>
<th></th> // blank heading
<th scope="col">Saturday</th>
<th scope="col">Sunday</th>
</tr>
<tr>
<th scope="row">Temperature</th>
<td>73</td>
<td>81</td>
</tr>
</table>
Saturday | Sunday | |
---|---|---|
Temperature | 73 | 81 |
<td colspan="1">Table Data</td>
<table>
<tr>
<th>Monday</th>
<th>Tuesday</th>
<th>Wednesday</th>
</tr>
<tr>
<td colspan="2">Out of Town</td>
<td>Back in Town</td>
</tr>
</table>
Monday | Tuesday | Wednesday |
---|---|---|
Out of Town | Back in Town |
<td rowspan="1">Table Data</td>
헷갈림 주의!
<tbody> </tbody>
<thead> </thead>
<table>
<thead> ~ </head>
<tbody> ~ </tbody>
<tfoot> ~ </tfoot>
</table>
<tfoot> </tfoot>
<table>
<thead>
<tr>
<th>Quarter</th>
<th>Revenue</th>
<th>Costs</th>
</tr>
</thead>
<tbody>
<tr>
<th>Q1</th>
<td>$10M</td>
<td>$7.5M</td>
</tr>
<tr>
<th>Q2</th>
<td>$12M</td>
<td>$5M</td>
</tr>
</tbody>
<tfoot>
<tr>
<th>Total</th>
<td>$22M</td>
<td>$12.5M</td>
</tr>
</tfoot>
</table>