TIL 02 [HTML] 테이블(표)
TABLES
- th : table heading
- tr : table row
- td : table data
rowspan, colspan 속성
rowspan="(숫자)"
행 합치기colspan="(숫자)"
열 합치기<td>
안에 들어가지요!!- *span: 걸치다
scope 속성
scope="row"
행 제목 /scope="col"
열 제목<th>
안에 들어갑니당!!- *scope: 범위
😀 표를 만들어보자..
제목1 | 제목2 | 제목3 | |
---|---|---|---|
제목A | 1행 1열 | 1행 2열 | 1,2행 3열 |
제목B | 2행 1열 | 2행 2열 | |
합계 | 어마어마어마어마어마한 숫자 |
<table> <thead> <tr> <th></th> <th scope="col">제목1</th> <th scope="col">제목2</th> <th scope="col">제목3</th> </tr> </thead> <tbody> <tr> <th scope="row">제목A</th> <td>1행 1열</td> <td>1행 2열</td> <td rowspan="2">1,2행 3열</td> </tr> <tr> <th scope="row">제목B</th> <td>2행 1열</td> <td>2행 2열</td> </tr> </tbody> <tfoot> <tr> <th>합계</th> <td colspan="3">어마어마어마어마어마한 숫자</td> </tr> </tfoot> <table>
Q. 작성할 때는 표가 제대로 보이는데 왜 출판하면 깨지는지..
Author And Source
이 문제에 관하여(TIL 02 [HTML] 테이블(표)), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://velog.io/@pika/TIL-02저자 귀속: 원작자 정보가 원작자 URL에 포함되어 있으며 저작권은 원작자 소유입니다.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)