06.15.20 table - govl2233/project_studyej GitHub Wiki
κΈ°λ³Έ
-
border : table κ²½κ³μ κ΅΅κΈ°λ₯Ό μ§μ ex) border="10"
-
width : λλΉλ₯Ό μ§μ ex) width:="100%","100px"(%,px)
-
height : λμ΄λ₯Ό μ§μ
- ν
< body > tag μμ< table > tagκ° λ€μ΄κ°
- tr : table row : κ°λ‘μ€ λ§λλ μν
- td : table data : μΈλ‘μ€ (μ ) λ§λλ μν ---> th λ‘ λ³κ²½ : κΈμ¨κ° λκ»κ² νμμ λͺ©μΌλ‘ λ³κ²½λ¨
- < table > μμ < tr > μκ³ μμ < td >
-
< table border="" width="" summary="" > --->summary(νμλνμμΈνμ€λͺ ) μλ μμΉμ΄μ§λ§ λ°μλ€ μ¨λλ¨ (νμμμμλ)
-
< caption > νμμ λͺ© -->β νμμμ (table νκ·Έ μμ caption μ΄ κΌ μμ΄μΌν¨)
-
< colgroup > ---> μ μ λν width κ°μ΄λ λμμΈμ μμλ₯Ό μ¬μ©ν λ μ΄μ©(rowgroup μμ => scpoeμ λμ€λ colgroupκ³Ό λ€λ¦)
-
< col width="μ€μ " />
-
μΉνμ€μ μ κ·Όμ± μμ
-
< thead > : ν μ΄λΈμμ μ λͺ©
-
< tfoot > : νμν©κ³- νλ₯Ό λ§λ€κ³ λΈλΌμ°μ Έλ₯Ό νμΈνλ©΄ 맨λ°μΌλ‘ κ°μλκ²μ λ³Όμμμ.(νμμμμλλΌ λΊμ μμΌλ©° theadλ κ°λ₯)
-
< tbody > : ν μ΄λΈμμ λ΄μ©
ex)
< body >
< table border="1" width="100%" summary="μΈλΆμ€λͺ
" >
< caption >νμμ λͺ©< /caption >
< colgroup >
< col width="100"/ >
< col / >
< col width="100"/ >
< col / >
< /colgroup >
< tbody >
< tr >
< td >text< /td >
< /tr >
< /tbody >
< /table >
< /body >
colspan
: ( th,tdνκ·Έμ μ¬μ©κ°λ₯ )
- column span μ½μλ‘ μ (κ°λ‘μ€) λ³ν©νλ μν ( colspan="κ°―μ" )
ex) < th colspan="2" > text < /th > λλ < td colspan="2" > text < /td >
rowspan
- rowspan μΌλ‘ μ (μΈλ‘μ€) λ³ν©νλ μν ( rowspan="κ°―μ" )
ex) < th rowspan="2" > text λλ < td rowspan="2 "> text < /td >
: μ½λλ°©ν₯ ( th νκ·Έμμμλ§ μ¬μ©κ°λ₯ )
col scope : μΈλ‘λ‘ μ½λ λ°©ν₯ (κ·Έλ£ΉμΌλ‘ λ¬ΆμΈκ²μ μΈλ‘λ‘ μ½μ λ scope="colgroup"μΌλ‘ μ λ ₯)
ex) < th colspan="4" scope="colgroup" id="f2" >text
row scope : κ°λ‘λ‘ μ½λ λ°©ν₯ (κ·Έλ£ΉμΌλ‘ λ¬ΆμΈκ²μ κ°λ‘λ‘ μ½μ λ scope="rowgroup" μΌλ‘ μ λ ₯)
ex) < th colspan="4" scope="rowgroup" id="f1" >text< /th >
headers="id" : μ¬μ©μκ° μ½νκ³ μΆμ μμλλ‘ μ½λ μν
ex) < td headers="f1 f24 c44 g11" >text< /td >
ex) < body >
< table border="1" width="100%" summary="μΈλΆμ€λͺ " >
< caption >νμμ λͺ© </caption >
< colgroup >
< col width="100"/ >
< col / >
< col width="100"/ >
< col / >
< /colgroup >
< thead >
< tr >
< th >text< /th >
< th colspan="" scope="colgroup" id="" >text< /th >
< /tr >
< /thead >
< tbody >
< tr >
< td >text< /td >
< td headers="νλ€μ κ³ μ μ΄λ¦λ€ ">text</td>
< td >text< /td >
< /tr >
< /tbody >
< /table >
< /body >