테이블태그기타
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>테이블태그 기타</title>
</head>
<body>
<table border="1" width="400">
<caption>표1. 별명</caption>
<colgroup>
<col width="20%" />
<col width="80%" />
</colgroup>
<thead>
<tr>
<th>이름</th>
<th>별명</th>
</tr>
</thead>
<tbody>
<tr>
<td>홍길동</td><td>HONG</td>
</tr>
<tr>
<td>백두산</td><td>BACK</td>
</tr>
</tbody>
<tfoot>
<tr>
<th colspan="2" align="right">총 2명</th>
</tr>
</tfoot>
</table>
</body>
</html>
//
- caption : 테이블의 이름(제목)
- colgroup/col width : 너비(열) 조절과 관련.
- th : 열 제목. 볼드체로 보여지고 가운데 정렬됨.