note

HTML Table 본문

HTML/기본

HTML Table

투한 2012. 1. 31. 17:44


<!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=UTF-8">
<title>table 연습</title>
</head>
<body>
	<table width="200" height="200" border="1">
		<tr>
			<td align="center" bgcolor="gray">월</td>
			<td align="right">화</td>
		</tr>
		<tr>
			<td valign="top" background="flower.jpg"><font color="white">수</font></td>
			<td valign="bottom">목</td>
		</tr>

	</table>
	<table width="300" height="200" border="1" cellpadding="10"
		cellspacing="10">
		<tr>
			<td>1</td>
			<td colspan="2">23</td>
		</tr>
		<tr>
			<td rowspan="2">47</td>
			<td>5</td>
			<td>6</td>
		</tr>
		<tr>
			<td>8</td>
			<td>9</td>
		</tr>
	</table>
	<!-- 제목으로 넣고 싶을때 th -->
	<table width="300" height="200" border="1">
		<tr>
			<th>일</th>
			<th>월</th>
			<th>화</th>
			<th>수</th>
			<th>목</th>
			<th>금</th>
			<th>토</th>
		</tr>
		<tr>
			<td>1</td>
			<td>2</td>
			<td>3</td>
			<td>4</td>
			<td>5</td>
			<td>6</td>
			<td>7</td>
		</tr>
	</table>
</body>
</html>

'HTML > 기본' 카테고리의 다른 글

HTML Form  (1) 2012.02.01
HTML 기본  (0) 2012.01.31