Jeden Tag, aufrichtig und lustig.

html 11. table 본문

HTML

html 11. table

a-nanas 2022. 5. 5. 22:31

table

테이블은 항상 <table> 태그로 감싸져 있다.

 

<table>

   <thead>

      <tr>
          <th colspan="2">
              <h1>Milk Festival Schedule</h1>
          </th>
      </tr>
      <tr>
          <th>
              <h2>Time</h2>
          </th>
          <th>
              <h2>Event</h2>
          </th>
      </tr>
  </thead>

  <tbody>  

     <tr>

        <td class="left>

           <h3>12:00 pm </h3>

        </td>

         <td>

          <h3>welcome</h3>

         </td>

    </tr>

  </tbody>

</table>

 

테이블 병합

 

 colspan (행 병합) / rowspan (열 병합) 속성 활용

 

Milk Festival Schedule
Time Event
12:00 pm welcome

 

더보기

*

thead : table head

 tbody : table body

 tfoot : table footer

 tr : table row

 td : table data

 th : table heading ( 가운데 정렬 & bold효과)

colspan : 열넓이

rowspan : 행넓이

'HTML' 카테고리의 다른 글

html 12. form  (0) 2022.06.28
html 10. comment  (0) 2022.05.05
html 9. 들여쓰기  (0) 2022.05.05
html 8. 동영상 삽입  (0) 2022.03.28
html 7. 웹 호스팅  (0) 2022.03.23