웹프 3장 정리 (3)

ssonjh·2021년 4월 11일
0

웹프로그래밍

목록 보기
5/13

📕 테이블 태그

📚 <table> <caption> <thead> <tbody> <tfoot> <tr> <th> <td>

text
text
text
text
<table>					: 표 삽입 (table)
	<caption>text</caption>		: 표의 제목(캡션) 붙이기
	<thead>				: 표 머리 생성 (table head)
                <tr><th>text</th></tr>	: 표의 행 생성(table row)
                			: 표의 제목요소 생성 (table header)
	</thead>
	<tbody>				: 표의 본문 생성 (table body)
                <tr><td>text</td></tr>	: 표의 일반요소 생성 (table data)
	</tbody>
	<tfoot>				: 표의 꼬리 생성 (table foot)
                <tr><td>text</td></tr>
	</tfoot>
</table>

<table>_속성

  1. width = " (숫자) "
<table width = "100"></table> : 표의 너비 지정
  1. summary = " (text) "
<table summary = "이 표는..."></table> : 표의 내용 요약. 
  1. border = " (숫자) "
<table border = "1"></table> : 표의 테두리 지정

<th> <td> _속성

  1. rowspan = " (숫자) "
<th rowspan = "2"></th> : 셀의 높이 지정 (세로)
  1. colspan = " (숫자) "
<td colspan = "2" ></td> : 셀의 너비 지정 (가로)

0개의 댓글

관련 채용 정보