table ¿¤·¹¸àÆ®ÀÇ Á¦¸ñÀ» ³ªÅ¸³»´Â caption °³Ã¼¸¦ ¹ÝȯÇÑ´Ù.

Àμö
: (¼Ó¼º ¹®ÀÚ¿­)
¼Ó¼º°ªÀº table ¿¤·¹¸àÆ®ÀÇ Á¦¸ñ(caption)À» ³ªÅ¸³»´Â °³Ã¼ ¹®ÀÚ¿­ÀÌ´Ù.

ÀÌ °³Ã¼Àº <TABLE><CAPTION>Å×À̺íÀÇ Á¦¸ñ</CAPTION></TABLE>¿¡ ÇØ´çÇÑ´Ù.

ÀÌ ¼Ó¼ºÀº ÀбâÀü¿ëÀ¸·Î µðÆúÆ®°ªÀº nullÀÌ´Ù.

Àû¿ë
°³Ã¼scriptHTML±Ô°ÝIE
Âü°í

ÀÌ ¼Ó¼ºÀº (¿µ¹®) W3C DOM Level 1(Document Object Model)¿¡¼­ Á¤ÀǵǾú´Ù.


Å×À̺í Á¦¸ñ(caption)
Å×À̺í Ä­1 Å×À̺í Ä­2
<TABLE id=tableObj border=1 width=400>
<CAPTION id=captionObj>Å×À̺í Á¦¸ñ(caption)</CAPTION>
<TR><TD>Å×À̺í Ä­1</TD><TD>Å×À̺í Ä­2</TD></TR>
</TABLE>
<DIV id=show style="width:400;border:solid 1 blue;padding:5">
<SCRIPT>
str='tableObj.caption='+tableObj.caption+'<BR>';
str+='tableObj.caption.id='+tableObj.caption.id+'<BR>';
str+='tableObj.caption.nodeName='+tableObj.caption.nodeName+'<BR>';
str+='tableObj.caption.parentElement.nodeName='+tableObj.caption.parentElement.nodeName+'<BR>';
str+='tableObj.caption.innerText='+tableObj.caption.innerText+'<BR>';
str+='tableObj.caption.style.color='+tableObj.caption.style.color+'<BR>';
document.all.tableObj.caption.style.color='red';
str+='document.all.tableObj.caption.style.color="red";<BR>';
str+='tableObj.caption.style.color='+tableObj.caption.style.color+'<BR>';
document.write(str);
</SCRIPT>
</DIV>