HTML용어 이해-table

Soony Lee·2024년 9월 15일
0

한단계씩 공부해보자!

웹페이지 크롤링을 위해서는 html에 대한 이해가 필요하다.

<thead>
  <tr>
    <th colspan="4" scope="col" class="sb_th">dd</th>
  </tr>
  <tr>
    <th rowspan="2" scope="col">a</th>
    <th rowspan="2" scope="col">b</th>
    <th colspan="2" scope="col">c</th>
  </tr>
  <tr>
    <th scope="col">
      "e"
      <br>
      "f"
    </th>
    <th scope="col">
      "g"
      <br>
      "h"
    </th>
  </tr>
</thead>

  1. colspan
    테이블의 셀을 열병합
    (ex: colspan = "4")는 테이블의 4개 셀을 열병합하라는 뜻

  2. rowspan
    테이블의 셀을 행병합
    (ex: rowspan = "2")는 테이블의 2개 셀을 행병합하라는 뜻

  3. tr: 행

  4. td: 열

  5. th: 표의 헤더

  6. caption 표 제목
    table 테이블, (ex table border="1" ,테이블 테두리 1)
    thead 헤더
    tbody 데이터
    tfoot 표아래

profile
no pain no gain

0개의 댓글