💜 HTML,CSS
HTML&CSS 실습4 (정리x)
Genie_.
2024. 3. 23. 22:03
728x90
반응형
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<style>
td,th{
border: 1px solid black;
text-align: center;
border-radius: 6px;
}
th{
background-color: lightgray;
color: blue;
}
tfoot td{
background-color: lightgray;
font-weight: bold;
}
caption{
font-weight: bold;
color: forestgreen;
}
.price{
color: red;
font-weight: bold;
font-size: large;
}
.room {
background-color: lightpink;
}
.none{
background-color: lightskyblue;
}
</style>
<body>
<table>
<caption>요안도라 객실</caption>
<thead>
<tr>
<th>방이름</th>
<th>대상</th>
<th>크기</th>
<th>가격</th>
</tr>
</thead>
<tbody>
<tr>
<td class="room">유채방</td>
<td>여성 도미토리</td>
<td rowspan="3">4인실</td>
<td rowspan="4" class="price">1인 20,000원</td>
</tr>
<tr>
<td rowspan="2" class="room">동백방</td>
<td>동성도미토리</td>
</tr>
<tr>
<td>가족 1팀</td>
</tr>
<tr>
<td class="room">천혜향방</td>
<td class="none">-</td>
<td>2인실</td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="4">바깥채 전체를 렌트합니다</td>
</tr>
</tfoot>
</table>
</body>
</html>

728x90
반응형