2013년 7월 8일 월요일

(130708) 11일차 TableTest.html (Table 만들기)

 - table의 구조













 - 소스
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">
<title>Insert title here</title>
</head>
<body>
<!-- cellpadding은 셀 테두리선과 셀 내의 데이터와의 여백을 지정  -->
<!-- cellspacing은 테이블의 테두리선과 셀 테두리 선 사이의 여백의 트기를 지정 -->
<table width = "400" border = "2" cellpadding = "2" cellspacing = "1">
<tr align = "center" bgcolor = "red">
<td> 1 </td>
<th> 2 </th>
<!-- 위 아래 2개 합침  -->
<td rowspan="2"> 3 </td>
</tr>
<tr align = "center">
<td> 4 </td>
<th> 5 </th>
</tr>
</table>
</body>
</html>


 - 결과