TABLES
<TABLE
[ALIGN=LEFT(default)|CENTER|RIGHT]
[BORDER[=n]]
[CELLPADDING=n]
[CELLSPACING=n]
[WIDTH=n[%]]
[HEIGHT=n[%]]>
<CAPTION
[ALIGN=TOP(default)|BOTTOM]>
......</CAPTION>
<TR
[ALIGN=LEFT|CENTER|RIGHT]
[VALIGN=BOTTOM|MIDDLE|TOP]>
<TH
[ALIGN=LEFT|CENTER|RIGHT]
[VALIGN=BOTTOM|MIDDLE|TOP]
[COLSPAN=n]
[ROWSPAN=n]
[WIDTH=n[%]]>......
</TH>
<TD
[ALIGN=LEFT|CENTER|RIGHT]
[VALIGN=BOTTOM|MIDDLE|TOP]
[COLSPAN=n]
[ROWSPAN=n]
[WIDTH=n[%]]>......
</TD>
</TR>
</TABLE>
tableÀº Ç¥ÀÛ¼º¿¡ »ç¿ëµÈ´Ù.
tableÀº <table> ... </table>·Î ½ÃÀÛ°ú ³¡À» ¾Ë¸®¸ç, <tr>Àº ÇϳªÀÇ ÇàÀ»
³ªÅ¸³½´Ù. <th>´Â °¢ Çà°ú ¿ÀÇ Á¦¸ñÀ», ±×¸®°í <td>´Â °¢ ¼¿ÀÇ ³»¿ëÀ»
³ªÅ¸³½´Ù. <th>¿Í <td>´Â ºê¶ó¿ìÀúÀÇ ¹®ÀÚ ¼Ó¼º¿¡ ±× Â÷ÀÌ°¡ ÀÖ´Ù. ÇÑÆí,
</tr>, </th>, </td>´Â »ý·«µÉ ¼ö ÀÖ´Ù.
´Ü, nested tables (table ¼Ó¿¡ ¶Ç ´Ù½Ã tableÀ» »ç¿ëÇÑ °æ¿ì)
¿¡´Â </tr>, </th>, </td>¸¦ »ý·«Çϸé,
¿øÇÏ´Â µ¥·Î Ãâ·ÂµÇÁö ¾ÊÀ» ¼ö ÀÖ´Ù. ([¿¹]
NESTED TABLES)
±×¸®°í ÇÊ¿äÇÏ´Ù¸é <caption>À» ÀÌ¿ëÇÏ¿© Ç¥Á¦¸¦ ´Þ ¼ö ÀÖ´Ù.
[»ç¿ë¿¹]
<table border>
<tr><th>°ú¸ñ <th>¼ºÀû <th>¼®Â÷ <th>Æò°¡
<tr><th>¿µ¾î <td>90 <td>7/50 <td align=center>¼ö
<tr><th>¼öÇÐ <td>80 <td>12/50 <td align=center>¿ì
</table>
|
[Ãâ·Â]
°ú¸ñ | ¼ºÀû | ¼®Â÷ | Æò°¡
|
---|
¿µ¾î | 90 | 7/50 | ¼ö
|
---|
¼öÇÐ | 80 | 12/50 | ¿ì
|
---|
´Ù¾çÇÑ attribute¸¦ »ç¿ëÇÏ¿© Á»´õ ¼¼·ÃµÈ
¸ð¾çÀÇ tableÀ» ÀÛ¼ºÇÒ ¼ö ÀÖ´Ù.
- ALIGN
- ºê¶ó¿ìÀúÀÇ À§µµ¿ì¿¡¼ tableÀÇ À§Ä¡¸¦ Á¤ÇÑ´Ù.
- BORDER
- °¢ cell(<th>, <td>´Â °¢°¢ ÇϳªÀÇ
cell¿¡ ÇØ´çÇÑ´Ù)À» ±¸ºÐÇÏ´Â ¼±À» ±ß´Â´Ù. ¼ýÀÚ°¡ ÁöÁ¤µÇ¸é
table Å׵θ®¼±ÀÇ ±½±â¸¦ ÁöÁ¤ÇÏ°Ô µÈ´Ù.
[¿¹] A TABLE WITHOUT BORDERS
A TABLE WITH A BORDER OF 10
- CELLPADDING
- cell ±¸ºÐ¼±°ú ¹®ÀÚ(cellÀÇ ³»¿ë)°£ÀÇ
°£°ÝÀ» ÁöÁ¤
[¿¹] CELLPADDING AND CELLSPACING
- CELLSPACING
- cell ±¸ºÐ¼±°£ÀÇ Æø ÁöÁ¤
[¿¹] CELLPADDING AND CELLSPACING
- WIDTH
- tableÀÇ °¡·ÎÆø ÁöÁ¤
[¿¹] BASIC 50% WIDTH
- HEIGHT
- tableÀÇ ¼¼·ÎÆø(³ôÀÌ) ÁöÁ¤
[¿¹] HEIGHT=15%
- ALIGN
- Ç¥Á¦°¡ ³õÀÏ À§Ä¡(À§,¾Æ·¡)¸¦ Á¤ÇÑ´Ù.
[¿¹] CAPTION=TOP|BOTTOM
- ALIGN, VALIGN
- ÇÑ Çà¿¡ Æ÷ÇÔµÈ °¢ cellµéÀÇ ¹®ÀÚµé(³»¿ë)ÀÇ °¡·Î ¹× ¼¼·Î À§Ä¡ ÁöÁ¤
[¿¹] ALIGN=LEFT|RIGHT|CENTER
VALIGN=TOP|BOTTOM|MIDDLE
<TH> <TD>
- ALIGN, VALIGN
- ÇØ´ç cellÀÇ ¹®ÀÚµé(³»¿ë)ÀÇ °¡·Î ¹× ¼¼·Î À§Ä¡ ÁöÁ¤
[¿¹] ALIGN=LEFT|RIGHT|CENTER
VALIGN=TOP|BOTTOM|MIDDLE
- COLSPAN, ROWSPAN
- ÇØ´ç cellÀÇ °¡·Î/¼¼·Î È®´ë. ÁöÁ¤µÈ ¼ýÀÚ ¸¸Å
´Ù¸¥ cell¿¡ ºñÇÏ¿© ÆøÀÌ Ä¿Áø´Ù.
[¿¹] DEMONSTRATIONS OF COLSPAN & ROWSPAN
- WIDTH
- ÇØ´ç cellÀÇ °¡·ÎÆø ÁöÁ¤
[´Ù¾çÇÑ attribute¸¦ »ç¿ëÇÑ ¿¹]
<TABLE BORDER>
<CAPTION>A test table with merged cells</CAPTION>
<TR><TH ROWSPAN=2><TH COLSPAN=2 WIDTH=100>Average
<TH ROWSPAN=2 WIDTH=70>other<BR>category<TH WIDTH=70>Misc
<TR><TH>height<TH>weight
<TR><TH ALIGN=LEFT>males<TD ALIGN=RIGHT>1.9<TD ALIGN=RIGHT>0.003<TD>Ñû
<TR><TH ALIGN=LEFT ROWSPAN=2>females<TD ALIGN=RIGHT>1.7<TD ALIGN=RIGHT>0.002<TD>åü<TD>Linda
</TABLE>
|
[Ãâ·Â]
A test table with merged cells
| Average
| other category | Misc
|
---|
height | weight
|
---|
males | 1.9 | 0.003 | Ñû
|
---|
females | 1.7 | 0.002 | åü | Linda
|
---|
¿©±â¼ »ç¿ëµÈ ¿¹Á¦ THE TABLE SAMPLER´Â
http://home.netscape.com/assist/net_sites/table_sample.html¸¦
ÀοëÇÑ °ÍÀÌ´Ù.