국비지원 Spring프레임워크/HTML

테이블 만들기 실습

대엽 2020. 11. 3. 09:21

만들어야 할 테이블




소스 코드


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<table border="1">
                <tr>
                    <td><b>방 이름</b></td>
                    <td><b>대상</b></td>
                    <td><b>크기</b></td>
                    <td><b>가격</b></td>
                </tr>
                <tr>
                    <td><b>유채방</b></td>
                    <td>여성 도미토리</td>
                    <td rowspan="3">4인실</td>
                    <td rowspan="4">1인 20,000원</td>
                </tr>
                <tr>
                    <td rowspan="2"><b>동백방</b></td>
                    <td>동성 도미토리</td>
                </tr>
                <tr>
                    <td>가족 1팀</td>
                </tr>
                <tr>
                    <td><b>천혜향방</b></td>
                    <td>-</td>
                    <td>2인실</td>
                </tr>
                <tr>
                    <td colspan="4"><b>바깥채 전체를 렌트합니다</b></td>
                </tr>
            
            </table>
cs