<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<table border="1">
<caption>표제목</caption>
<colgroup>
<col style="width: 200px;">
<col>
<col>
<col style="background-color: blue;">
</colgroup>
<tbody>
<tr>
<th>1행1열</th>
<th>1행2열</th>
<td>1행3열</td>
<td>1행4열</td>
</tr>
<tr>
<th>2행1열</th>
<td>2행2열</td>
<td>2행3열</td>
<td>2행4열</td>
</tr>
<tr>
<th>3행1열</th>
<td>3행2열</td>
<td>3행3열</td>
<td>3행4열</td>
</tr>
<tbody>
</table>
</body>
</html>
대부분 자식이 블록레벨이라면 부모도 블록레벨이다.
ul(or ol)안에 텍스트태그가 있으면 이것도 자식이다.
-필수 요소
-옵셔널 요소 (없어도 상관없는 요소)
-속성 -
세로방향으로 높이 줄 때
height값은 먹고
padding값은 안먹고
line-height는 먹는다.
테이블태그는 css 적용 안되는 것이 꽤 있어서 테이블태그보다는 div태그를 더 선호한다.