7.7 練習問題 解答

問1

① テーブル

② セル

③ colspan

④ rowspan

⑤ width

⑥ height

問2

➢ table6.html

<!DOCTYPE html>
	<html lang="ja">
	<head>
		<meta charset="UTF-8">
		<link rel="stylesheet" href="table6.css">
		<title>セルのサイズ</title>
	</head>
	<body>
		<table>
			<tr>
				<td colspan="3">111</td>
			</tr>
			<tr>
				<td rowspan="2">222</td>
				<td>333</td>
				<td>444</td>
			</tr>
			<tr>
				<td>555</td>
				<td>666</td>
			</tr>
		</table>
	</body>
</html>


➢ table6.css

@charset "UTF-8";

table {
    border-collapse: collapse;
    border: 1px solid gray;
    width: 350px;
    height: 140px;
}

td {
    border: 1px solid gray;
}