ȨÆäÀÌÁöÁ¦ÀÛ±³½Ç
ȨÆäÀÌÁö Á¦ÀÛ±âÃÊ
±âº»Å±×
ÅÂ±×ÆÁ¸ðÀ½
ű×ÀÚ·á¹æ
Æ÷Åä¼¥°ÁÂ
À¥.°ü·Ã°ÁÂ
PHP°ÁÂ
PHPÆÁ
HTML.CSS
JAVASCRIPT
ASP
JSP
PHP½ÉÈ
C.C++
Ç÷¡½Ã.ActionScript
ÀÚÀ¯°Ô½ÃÆÇ
Áú¹®°Ô½ÃÆÇ
À¯¸Ó°Ô½ÃÆÇ
¿À¶ô½Ç
Tel. 042-353-2371
ÆòÀÏ ¿ÀÀü 9½Ã ~ ¿ÀÈÄ 7½Ã
±â¾÷ÀºÇà
010-8649-6758
¿¹±ÝÁÖ:Á¦ÁÖ»ç¶û(¼ÛÁø¾Æ)
JAVASCRIPT
Ȩ > ȨÆäÀÌÁöÁ¦ÀÛ±³½Ç > JAVASCRIPT
ÀÛ¼ºÀÚ
freewebkorea
Ä«Å×°í¸®
JavaScript
Tutorial
Object
ºñ¹Ð¹øÈ£
Á¦¸ñ
<H2>form °ü·Ã HTML Elements</H2> <P class=mtext>ÀÌ ¹ø ÆäÀÌÁö¿¡¼´Â FormÀ» À§Çؼ ¸¸µç Element¶ó°í ÇØµµ °ú¾ðÀÌ ¾Æ´Ò Label, Fieldset, Legend Element¿¡ ´ëÇØ ¾Ë¾Æ º¸°Ú½À´Ï´Ù. ÀÌ ElementµéÀº Form À» º¸±â ÁÁ°Ô ²Ù¸ç ÁÙ »Ó¸¸ ¾Æ´Ï¶ó, °°Àº Á¾·ùÀÇ ÀÔ·Â field ³¢¸® ¹¾î¼ Á¦¸ñÀ» ºÙ¿© ÁֹǷÎÇØ¼ ±¸ºÐÀ» ´õ¿í ½±°Ô ÇØ ÁÝ´Ï´Ù. º¸±â ÁÁÀº ¶±ÀÌ ¸Ô±âµµ ÁÁ´Ù. ¶Ç´Â ±â¿ÕÀÌ¸é ´Ùȫġ¸¶´Ù... ¸Ó ÀÌ·± ¸»µµ ÀÖÁö ¾Ê½À´Ï±î.</P><!-- dtd table ½ÃÀÛ --> <TABLE class=dtd width="100%"> <CAPTION class=general><B>legend</B> : <B>o</B>ptional, <B>f</B>orbidden, <B>e</B>mpty, <B>d</B>eprecated, <B>l</B>oose dtd, <B>f</B>rameset dtd [<A href="http://www.cadvance.org/doc/html/beginner/html_element.asp#dtd">Ç¥ º¸´Â ¹æ¹ý</A>] </CAPTION> <TBODY> <TR class=qlookttltr> <TD>element <TD>start tag <TD>end tag <TD>empty <TD>deprecated <TD>dtd <TR class=qlookvaluetr> <TD>LABEL <TD> <TD> <TD> <TD> <TD> <TR class=qlookvaluetr> <TD>FIELDSET <TD> <TD> <TD> <TD> <TD> <TR class=qlookvaluetr> <TD>LEGEND <TD> <TD> <TD> <TD> <TD> <TR class=qlookvaluetr> <TD>BUTTON <TD> <TD> <TD> <TD> <TD> </TD></TR></TBODY></TABLE><!-- dtd table ³¡--><BR><BR><!-- »ç¿ë¹ý µé¾î°¡´Â Å×ÀÌºí ½ÃÀÛ --> <TABLE class=attributeTbl cellSpacing=2 cellPadding=0 border=0> <TBODY> <TR> <TD class=titleCell colSpan=2>Label Element</TD></TR> <TR> <TD class=syntaxLeftCell>accesskey</TD> <TD class=syntaxRightCell><B>alt key</B>¿Í ÇÔ²² ´·¯¼ for·Î ÁöÁ¤ÇÑ id¸¦ °¡Áø ÀԷ¶õ¿¡ Á¢±Ù(<B>access</B> : text ÀԷ¶õ¿¡´Â focus¸¦ ¸ÂÃß°í, radio¿Í checkbox´Â ¼±ÅÃ) ÇÒ ¼ö ÀÖ°Ô ÇØÁÖ´Â <B>¿µ¹®ÀÚ 1 ±ÛÀÚ(key)</B>.</TD></TR> <TR> <TD class=syntaxLeftCell>for</TD> <TD class=syntaxRightCell>accesskeyÀÇ ´ë»óÀÌ µÉ ÀԷ¶õÀÇ id</TD></TR> <TR> <TD class=syntaxLeftCell>°øÅë ¼Ó¼º</TD> <TD class=syntaxRightCell>dir, id, class, style, title, ¹ß»ýÇÏ´Â Event´Â <A href="http://www.cadvance.org/doc/public/basic_structure.asp#common_attribute">°øÅë ¼Ó¼ºÇ¥ </A>¸¦ ÂüÁ¶ </TD></TR> <TR> <TD class=syntaxLeftCell>sample</TD> <TD class=syntaxRightCell style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px">¾Æ·¡ÀÇ ÀԷ¶õ ¿· ¹ØÁÙÄ£ ¿µ¹®ÀÚ¸¦ alt key¸¦ ´©¸¥Ã¤ Âï¾î º¸¼¼¿ä. ¶Ç text ÀԷ¶õ, radio button, checkbox¸¦ Á÷Á¢ Ŭ¸¯ÇÏÁö ¸»°í, label·Î ÁöÁ¤ÇÑ ±ÛÀÚ¸¦ ´·¯º¸¸é ´Ü¾î¿¡ focus(Á¡¼± Å׵θ®)°¡ »ý±â¸é¼ ÇØ´ç ÀԷ¶õÀ» Ŭ¸¯ÇÑ °Í°ú °°Àº È¿°ú°¡ ÀÖ½À´Ï´Ù. U Element¸¦ »ç¿ëÇÏ¿© ¹ØÁÙÀ» Ãļ accesskey°¡ ¹ºÁö ´ç¿¬È÷ Ç¥½Ã ÇØ¾ß µÇ°í, ¾Æ·¡¿Í °°ÀÌ style="cursor:hand;"·Î Ŭ¸¯À» À¯µµÇϰï ÇÏÁö¿ä...^^<BR><BR>***°°Àº accesskey¸¦ µÎ¹ø ÀÌ»ó »ç¿ëÇϸé óÀ½ »ç¿ëÇÑ accesskey¸¸ ¸Ô½À´Ï´Ù.<BR><BR><INPUT id=txt> <LABEL style="CURSOR: hand" accessKey=i for=txt><U>I</U>nput</LABEL> <INPUT id=chk type=checkbox> <LABEL style="CURSOR: hand" accessKey=c for=chk><U>C</U>heck</LABEL> <INPUT id=man type=radio name=sex> <LABEL style="CURSOR: hand" accessKey=m for=man><U>M</U>an</LABEL> <INPUT id=woman type=radio name=sex> <LABEL style="CURSOR: hand" accessKey=w for=woman><U>W</U>oman</LABEL><BR><BR><B>Source code</B> <DIV class=input style="BORDER-TOP-WIDTH: 1px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px"><form><BR><input type="text" <B>id="txt"</B> /><BR><SPAN style="COLOR: #941919"><label accesskey="<B>i</B>" <B>for="txt"</B> style="cursor:hand;"><u><B>I</B></u>nput</label></SPAN><BR><input type="checkbox" <B>id="chk"</B> /><BR><SPAN style="COLOR: #941919"><label accesskey="<B>c</B>" <B>for="chk"</B> style="cursor:hand;"><u><B>C</B></u>heck</label></SPAN><BR><input type="radio" <B>id="man"</B> name="sex" /><BR><SPAN style="COLOR: #941919"><label accesskey="<B>m</B>" <B>for="man"</B> style="cursor:hand;"><u><B>M</B></u>an</label></SPAN><BR><input type="radio" <B>id="woman"</B> name="sex" /><BR><SPAN style="COLOR: #941919"><label accesskey="<B>w</B>" <B>for="woman"</B> style="cursor:hand;"><u><B>W</B></u>oman</label></SPAN><BR></form> </DIV><!-- ÀÔ·Â div ³¡--></TD></TR> <TR></TR></TBODY></TABLE><!-- »ç¿ë¹ý µé¾î°¡´Â Å×ÀÌºí ³¡--><BR><BR> <HR class=grayHr> <BR><B>Fieldset Element, Legend Element</B> <P class=mtext>Fieldset Element´Â ¾Æ·¡ÀÇ ¿¹¿Í °°ÀÌ fieldset ¾È¿¡ ÀÖ´Â ElementµéÀ» Å׵θ®·Î ¹¾î ÁÖ´Â ´Ü¼øÇÑ ¿ªÇÒÀ» ÇØ ÁÝ´Ï´Ù. Legend Element´Â Á¦¸ñÀÌ µÇ°Ú±¸¿ä... µû¶ó¼ fieldsetÀº °øÅë ¼Ó¼º¸¸À¸·Î °¡Áö°í ÀÖ°í, Legend´Â ¼öÆò Á¤·Ä(align: left, center, right) ¼Ó¼ºÀ» °¡Áö°í ÀÖ½À´Ï´Ù.</P><!-- Ãâ·Â°á°ú div ½ÃÀÛ --><B>Fieldset°ú Legend</B> <DIV class=output> <FIELDSET><LEGEND>Fieldset°ú Legend</LEGEND> <FORM><INPUT id=txt1> <LABEL style="CURSOR: hand"><U>I</U>nput</LABEL> <INPUT id=chk1 type=checkbox> <LABEL style="CURSOR: hand"><U>C</U>heck</LABEL> <INPUT id=man1 type=radio name=sex> <LABEL style="CURSOR: hand"><U>M</U>an</LABEL> <INPUT id=woman1 type=radio name=sex> <LABEL style="CURSOR: hand"><U>W</U>oman</LABEL> </FORM></FIELDSET> </DIV><!-- Ãâ·Â°á°ú div ³¡--><!-- ÀÔ·Â pre ½ÃÀÛ --><B class=pos>Source code</B> <PRE class=input><html> <head> <title>Fieldset°ú Legend</title> </head> <body> <form> <B><SPAN style="COLOR: #941919"><fieldset></SPAN> <legend>Fieldset°ú Legend</legend></B> <input type="text" id="txt" /> <label accesskey="i" for="txt" style="cursor:hand;"><u>I</u>nput</label> <input type="checkbox" id="chk" /> <label accesskey="c" for="chk" style="cursor:hand;"><u>C</u>heck</label> <input type="radio" id="man" name="sex" /> <label accesskey="m" for="man" style="cursor:hand;"><u>M</u>an</label> <input type="radio" id="woman" name="sex" /> <label accesskey="w" for="woman" style="cursor:hand;"><u>W</u>oman</label> <B><SPAN style="COLOR: #941919"></fieldset></SPAN></B> </form> </body> </html> </PRE><!-- ÀÔ·Â pre ³¡--><BR><BR><A name=tabindex></A> <HR class=grayHr> <BR><B>tabindex Attribute</B> <P class=mtext>À¥ ÆäÀÌÁö »ó¿¡¼ ¸µÅ©³ª ÀԷ¶õ ÀÌ ÀÖ´Â °æ¿ì ¸¶¿ì½º¸¦ »ç¿ëÇÏÁö ¾Ê°í Tab key¸¦ ´·¯ Ç׸ñÀ¸·Î À̵¿ÇÒ ¼ö ÀÖÀ¸¸ç, ±× ¼ø¼´Â Source¸¦ CodingÇÑ ¼ø¼¸¦ µû¸£°Ô µË´Ï´Ù. ÇÏÁö¸¸ °æ¿ì¿¡ µû¶ó¼´Â Áß°£¿¡ °Ç³Ê ¶Ù°Ô ÇÒ Ç׸ñÀ̳ª ¼ø¼¸¦ ÁöÁ¤ÇÒ ¼ö´Â ÀÖ½À´Ï´Ù. tabindex ¼Ó¼ºÀº A, AREA, BUTTON, INPUT, OBJECT, SELECT, TEXTAREA Tag µî¿¡¼ Keyboard <B>Tab</B> Key¸¦ ´·¯¼ tabindex ¼Ó¼ºÀ¸·Î ÁöÁ¤ÇÑ Ç׸ñ °£À» À̵¿ ¶Ç´Â Á¡ÇÁ½ÃÄÑ ÁÖ´Â ¼Ó¼ºÀÔ´Ï´Ù. Tab°ú IndexÀÇ µÎ ´Ü¾î¸¦ ºÙ¿©³õÀº ¼ÀÀÌÁÒ. ¿äÁò ó·³ Mouse¸¦ ¸¹ÀÌ »ç¿ëÇÏ´Â »óȲ¿¡¼ ÀÌ°Ô ¹«½¼ Çʿ䰡 ÀÖ°Ú³ª ÇϰÚÁö¸¸, Keyboard¿¡ Àͼ÷ÇÑ »ç¿ëÀڵ鿡°Ô´Â ¸Å¿ì Æí¸®ÇÑ ±â´ÉÀÔ´Ï´Ù. ¿À·£ ÀÛ¾÷À» ÇÏ´Ù º¸¸é ¸¶¿ì½º¸¦ Àâ¾Ò´Ù ³õ¾Ò´Ù ÇÏ´Â°Ô ¹«Áö ±ÍÂú°Åµç¿ä. ¿µ¾î±Ç ±¹°¡¿¡¼ ¸¹ÀÌ »ç¿ëÇѴٴ±º¿ä.<BR><BR>W3CÀÇ spec¿¡ ÀÇÇϸé 0 ~ 32767 ±îÁöÀÇ Á¤¼ö°¡ »ç¿ë °¡´ÉÇϸç ÀÌ¿ÜÀÇ ¼ýÀÚ´Â ¹«½ÃÇϰí, ºê¶ó¿ìÀú¿¡ µû¶ó '0' ÀÌ Ã¹ ¹øÂ° ÀÏ ¼öµµ ÀÖ°í ¸¶Áö¸·ÀÌ µÉ ¼öµµ ÀÖ´Ù°í ÇÕ´Ï´Ù. IE ¿¡¼´Â '0' ÀÌ ¸¶Áö¸·À¸·Î ó¸® µË´Ï´Ù. <BR><BR>ÀÌ Ã³·³ ¼ýÀÚÀÇ »ç¿ë ÆøÀÌ Å©±â ¶§¹®¿¡ ÇϳªÀÇ ¿ä·ÉÀ» ¸»ÇØ ÁÖÀÚ¸é, 1, 2, 3, 4 ¿Í °°ÀÌ Numbering ÇÏÁö ¸»°í 10, 20, 30 °ú °°ÀÌ Áß°£¿¡ ¹øÈ£¸¦ ³²°Ü µÎ¸é Áß°£¿¡ »õ Ç׸ñÀ» Ãß°¡ÇØ¾ß ÇÒ Çʿ䰡 ÀÖÀ» ¶§ ´Ù¸¥ tabindex¸¦ ¼öÁ¤ÇÏÁö ¾Ê¾Æµµ µÇ°ÚÁ®? ÀÚ¼¼ÇÑ »ç¿ë¹ýÀº </P><!-- ¼ø¼°¡ ¾ø´Â List ½ÃÀÛ --> <UL class=lineHeight> <LI class=ulColor><SPAN class=litem>ÀÏ´Ü Tab ¿¡ ÀÇÇØ ¼±ÅÃµÈ Ç׸ñÀº focus°¡ »ý±â°í</SPAN> <LI class=ulColor><SPAN class=litem>A, Area, Button °°ÀÌ Link °É¸° ±ÛÀÚ³ª ±×¸²ÀÇ °æ¿ì enter¸¦ Ä¡¸é ¸¶¿ì½º·Î Ŭ¸¯ÇÑ °Í°ú °°½À´Ï´Ù.</SPAN> <LI class=ulColor><SPAN class=litem>Input typeÀÌ textÀÎ °æ¿ì³ª Textarea ´Â ¹®ÀÚ ÀÔ·ÂÀ» ÇÏ¸é µÇ°ÚÁÒ.</SPAN> <LI class=ulColor><SPAN class=litem>Select - OptionÀÇ °æ¿ì »óÇÏ È»ìÇ¥ Ű·Î ¼±ÅÃ</SPAN> <LI class=ulColor><SPAN class=litem>Input typeÀÌ radio, checkboxÀÎ °æ¿ì Spacebar·Î ¼±ÅÃ</SPAN> <LI class=ulColor><SPAN class=litem>µÚ·Î Ç׸ñÀ» À̵¿ÇÏ°í ½ÍÀ¸¸é shift + tab</SPAN> </LI></UL><!-- ¼ø¼°¡ ¾ø´Â List ³¡--><!-- ÀÔ·Â pre ½ÃÀÛ --><B class=pos>ÀÔ·Â</B> <PRE class=input id=tab_index><html> <head> <title>tabindex Attribute</title> </head> <body> <a href="#" tabindex="10">10</a><br /> <a href="#" tabindex="11">11</a><br /> <a href="#" tabindex="20">20</a><br /> <form> <input type="checkbox" tabindex="30" />30<br /> <input type="checkbox" tabindex="40" />40<br /> <input type="radio" name="rad1" tabindex="50" />50<br /> <input type="radio" name="rad2" tabindex="60" />60<br /> <input type="radio" name="rad3" tabindex="70" />70<br /> <input type="text" tabindex="-1" />-1<br /> <input type="text" tabindex="0" />0<br /> <textarea tabindex="80"></textarea>80<br /> <button tabindex="90">90</button><br /> </form> </body> </html> </PRE><!-- ÀÔ·Â pre ³¡--><A href="javascript:copy2Clipboard(tab_index);open_window('../../../include/code_executor.asp');"><IMG alt="ÄÚµå ½ÇÇà Çϱâ" src="http://www.cadvance.org/doc/images/icon/exec_button.gif" border=0></A><BR><BR> <HR class=grayHr> <BR><B>Button Element</B> <P class=mtext>Button Element´Â Input typeÀÌ Button, submit, resetÀÇ 3°¡ÁöÀÎ °æ¿ì¿¡ ¸¸µé¾îÁö´Â Button°ú ºñ½ÁÇÏÁö¸¸ ¾à°£ÀÇ Â÷À̰¡ ÀÖ½À´Ï´Ù. ±× Â÷ÀÌ´Â</P><!-- ¼ø¼°¡ ¾ø´Â List ½ÃÀÛ --> <UL class=lineHeight> <LI class=ulColor><SPAN class=litem>Button Element´Â End TagÀÌ ÇÊ¿äÇÏ´Ù´Â Á¡.</SPAN> <LI class=ulColor><SPAN class=litem>Button ¼Ó¿¡ ³»¿ë¹°(Contents)¸¦ ³ÖÀ» ¼ö ÀÖ´Ù´Â Á¡</SPAN> <LI class=ulColor><SPAN class=litem>accesskey ¸¦ ÁöÁ¤ÇÒ ¶§ ¹ØÁÙ(U TagÀ¸·Î)À» ³ÖÀ» ¼ö ÀÖ´Ù´Â Á¡. (Input ÀÇ °æ¿ì value °ªÀÌ Button¿¡ ³ªÅ¸³ª±â ¶§¹®¿¡ ¹ØÁÙÀ» ±×À» ¼ö ¾øÁ®)</SPAN> </LI></UL><!-- ¼ø¼°¡ ¾ø´Â List ³¡--> <P class=mtext>ÀÌ¿Í °°ÀÌ Input Element¿Í ´Þ¸® ´õ ¸¹Àº È¿°ú¸¦ ³¾ ¼ö ÀÖ½À´Ï´Ù. ¿ì¼± ±×¸² ÆÄÀÏÀÌ µé¾î°£ ¿¹¸¦ Çϳª º¾½Ã´Ù.</P><!-- »ç¿ë¹ý µé¾î°¡´Â Å×ÀÌºí ½ÃÀÛ --> <TABLE class=attributeTbl cellSpacing=2 cellPadding=0 border=0> <TBODY> <TR> <TD class=titleCell colSpan=2>Button Element</TD></TR> <TR> <TD class=syntaxLeftCell>accesskey</TD> <TD class=syntaxRightCell><B>alt key</B>¿Í ÇÔ²² ´·¯¼ for·Î ÁöÁ¤ÇÑ id¸¦ °¡Áø ÀԷ¶õ¿¡ Á¢±Ù(<B>access</B> : text ÀԷ¶õ¿¡´Â focus¸¦ ¸ÂÃß°í, radio¿Í checkbox´Â ¼±ÅÃ) ÇÒ ¼ö ÀÖ°Ô ÇØÁÖ´Â <B>¿µ¹®ÀÚ 1 ±ÛÀÚ(key)</B>.</TD></TR> <TR> <TD class=syntaxLeftCell>tabindex</TD> <TD class=syntaxRightCell><A href="http://www.cadvance.org/doc/java/object/form/form_design_1.asp#tabindex">tabindex attribute</A> ÂüÁ¶</TD></TR> <TR> <TD class=syntaxLeftCell>type</TD> <TD class=syntaxRightCell><B>button(Default), submit, reset</B> ÀÇ 3°¡Áö type À̸ç INPUT ElementÀÇ <A href="http://www.cadvance.org/doc/java/object/form/input_element.asp#input_type">type attribute</A> ÂüÁ¶</TD></TR> <TR> <TD class=syntaxLeftCell>disabled</TD> <TD class=syntaxRightCell>INPUT ElementÀÇ<A href="http://www.cadvance.org/doc/java/object/form/input_element.asp#disabled">disabled attribute</A> ÂüÁ¶</TD></TR> <TR> <TD class=syntaxLeftCell>°øÅë ¼Ó¼º</TD> <TD class=syntaxRightCell>dir, id, class, style, title, ¹ß»ýÇÏ´Â Event´Â <A href="http://www.cadvance.org/doc/public/basic_structure.asp#common_attribute">°øÅë ¼Ó¼ºÇ¥ </A>¸¦ ÂüÁ¶</TD></TR></TBODY></TABLE><BR><BR><B>IMG TagÀ» Æ÷ÇÔÇÑ Button</B><BR><BR><BUTTON style="CURSOR: hand" onclick="location.href='mailto:webmaster@cadvance.org'"><B>Send E-mail</B> <IMG alt="email (1K)" src="http://www.cadvance.org/doc/images/icon/email.gif" align=absMiddle></BUTTON><BR><BR><!-- ÀÔ·Â pre ½ÃÀÛ --><B class=pos>Source code</B> <PRE class=input id=button_1><body> <<B>button</B> onclick="location.href='mailto:webmaster@cadvance.org'" style="cursor:hand;"> <<B>b</B>>Send E-mail</<B>b</B>>&nbsp;&nbsp; <<B><SPAN style="COLOR: #941919">img</SPAN></B> src="../images/icon/email.gif" align="absmiddle" alt="email (1K)" /> </<B>button</B>> </body> </PRE><!-- ÀÔ·Â pre ³¡--><A href="javascript:copy2Clipboard(button_1);open_window('../../../include/code_executor.asp');"><IMG alt="ÄÚµå ½ÇÇà Çϱâ" src="http://www.cadvance.org/doc/images/icon/exec_button.gif" border=0></A><BR><BR><BR><BR><B>Form collection ¼Ó¿¡¼ »ç¿ë ÇÒ °æ¿ì</B><BR> <P class=mtext>Button typeÀÌ submit ¶Ç´Â reset ÀÏ °æ¿ì ¹Ýµå½Ã Form collection(<form> ~ </form>) ¼Ó¿¡¼ »ç¿ëÇÕ´Ï´Ù.</P><!-- ÀÔ·Â pre ½ÃÀÛ --><B class=pos>Source code</B> <PRE class=input id=into_form><body> <form action="http://somesite.com/prog/adduser" method="post"> <P> First name: <input type="text" name="firstname"><br /> Last name: <input type="text" name="lastname"><br /> E-mail: <input type="text" name="email"><br /> <input type="radio" name="sex" value="Male"> Male<br /> <input type="radio" name="sex" value="Female"> Female<br /> <button name="submit" value="submit" type="submit"> <u>S</u>end <img align="absmiddle" src="../../images/login_icon/login_button.gif" alt="login (1K)" /> </button> <button name="reset" type="reset"> <u>R</u>eset <img align="absmiddle" src="../../images/login_icon/reset.gif" alt="register (1K)" /> </button> </P> </form> </body> </PRE><!-- ÀÔ·Â pre ³¡--><A href="javascript:copy2Clipboard(into_form);open_window('../../../include/code_executor.asp');"><IMG alt="ÄÚµå ½ÇÇà Çϱâ" src="http://www.cadvance.org/doc/images/icon/exec_button.gif" border=0></A><BR><BR><BR> <HR class=blackHr>
<H2>form °ü·Ã HTML Elements</H2> <P class=mtext>ÀÌ ¹ø ÆäÀÌÁö¿¡¼´Â FormÀ» À§Çؼ ¸¸µç Element¶ó°í ÇØµµ °ú¾ðÀÌ ¾Æ´Ò Label, Fieldset, Legend Element¿¡ ´ëÇØ ¾Ë¾Æ º¸°Ú½À´Ï´Ù. ÀÌ ElementµéÀº Form À» º¸±â ÁÁ°Ô ²Ù¸ç ÁÙ »Ó¸¸ ¾Æ´Ï¶ó, °°Àº Á¾·ùÀÇ ÀÔ·Â field ³¢¸® ¹¾î¼ Á¦¸ñÀ» ºÙ¿© ÁֹǷÎÇØ¼ ±¸ºÐÀ» ´õ¿í ½±°Ô ÇØ ÁÝ´Ï´Ù. º¸±â ÁÁÀº ¶±ÀÌ ¸Ô±âµµ ÁÁ´Ù. ¶Ç´Â ±â¿ÕÀÌ¸é ´Ùȫġ¸¶´Ù... ¸Ó ÀÌ·± ¸»µµ ÀÖÁö ¾Ê½À´Ï±î.</P><!-- dtd table ½ÃÀÛ --> <TABLE class=dtd width="100%"> <CAPTION class=general><B>legend</B> : <B>o</B>ptional, <B>f</B>orbidden, <B>e</B>mpty, <B>d</B>eprecated, <B>l</B>oose dtd, <B>f</B>rameset dtd [<A href="http://www.cadvance.org/doc/html/beginner/html_element.asp#dtd">Ç¥ º¸´Â ¹æ¹ý</A>] </CAPTION> <TBODY> <TR class=qlookttltr> <TD>element <TD>start tag <TD>end tag <TD>empty <TD>deprecated <TD>dtd <TR class=qlookvaluetr> <TD>LABEL <TD> <TD> <TD> <TD> <TD> <TR class=qlookvaluetr> <TD>FIELDSET <TD> <TD> <TD> <TD> <TD> <TR class=qlookvaluetr> <TD>LEGEND <TD> <TD> <TD> <TD> <TD> <TR class=qlookvaluetr> <TD>BUTTON <TD> <TD> <TD> <TD> <TD> </TD></TR></TBODY></TABLE><!-- dtd table ³¡--><BR><BR><!-- »ç¿ë¹ý µé¾î°¡´Â Å×ÀÌºí ½ÃÀÛ --> <TABLE class=attributeTbl cellSpacing=2 cellPadding=0 border=0> <TBODY> <TR> <TD class=titleCell colSpan=2>Label Element</TD></TR> <TR> <TD class=syntaxLeftCell>accesskey</TD> <TD class=syntaxRightCell><B>alt key</B>¿Í ÇÔ²² ´·¯¼ for·Î ÁöÁ¤ÇÑ id¸¦ °¡Áø ÀԷ¶õ¿¡ Á¢±Ù(<B>access</B> : text ÀԷ¶õ¿¡´Â focus¸¦ ¸ÂÃß°í, radio¿Í checkbox´Â ¼±ÅÃ) ÇÒ ¼ö ÀÖ°Ô ÇØÁÖ´Â <B>¿µ¹®ÀÚ 1 ±ÛÀÚ(key)</B>.</TD></TR> <TR> <TD class=syntaxLeftCell>for</TD> <TD class=syntaxRightCell>accesskeyÀÇ ´ë»óÀÌ µÉ ÀԷ¶õÀÇ id</TD></TR> <TR> <TD class=syntaxLeftCell>°øÅë ¼Ó¼º</TD> <TD class=syntaxRightCell>dir, id, class, style, title, ¹ß»ýÇÏ´Â Event´Â <A href="http://www.cadvance.org/doc/public/basic_structure.asp#common_attribute">°øÅë ¼Ó¼ºÇ¥ </A>¸¦ ÂüÁ¶ </TD></TR> <TR> <TD class=syntaxLeftCell>sample</TD> <TD class=syntaxRightCell style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px">¾Æ·¡ÀÇ ÀԷ¶õ ¿· ¹ØÁÙÄ£ ¿µ¹®ÀÚ¸¦ alt key¸¦ ´©¸¥Ã¤ Âï¾î º¸¼¼¿ä. ¶Ç text ÀԷ¶õ, radio button, checkbox¸¦ Á÷Á¢ Ŭ¸¯ÇÏÁö ¸»°í, label·Î ÁöÁ¤ÇÑ ±ÛÀÚ¸¦ ´·¯º¸¸é ´Ü¾î¿¡ focus(Á¡¼± Å׵θ®)°¡ »ý±â¸é¼ ÇØ´ç ÀԷ¶õÀ» Ŭ¸¯ÇÑ °Í°ú °°Àº È¿°ú°¡ ÀÖ½À´Ï´Ù. U Element¸¦ »ç¿ëÇÏ¿© ¹ØÁÙÀ» Ãļ accesskey°¡ ¹ºÁö ´ç¿¬È÷ Ç¥½Ã ÇØ¾ß µÇ°í, ¾Æ·¡¿Í °°ÀÌ style="cursor:hand;"·Î Ŭ¸¯À» À¯µµÇϰï ÇÏÁö¿ä...^^<BR><BR>***°°Àº accesskey¸¦ µÎ¹ø ÀÌ»ó »ç¿ëÇϸé óÀ½ »ç¿ëÇÑ accesskey¸¸ ¸Ô½À´Ï´Ù.<BR><BR><INPUT id=txt> <LABEL style="CURSOR: hand" accessKey=i for=txt><U>I</U>nput</LABEL> <INPUT id=chk type=checkbox> <LABEL style="CURSOR: hand" accessKey=c for=chk><U>C</U>heck</LABEL> <INPUT id=man type=radio name=sex> <LABEL style="CURSOR: hand" accessKey=m for=man><U>M</U>an</LABEL> <INPUT id=woman type=radio name=sex> <LABEL style="CURSOR: hand" accessKey=w for=woman><U>W</U>oman</LABEL><BR><BR><B>Source code</B> <DIV class=input style="BORDER-TOP-WIDTH: 1px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px"><form><BR><input type="text" <B>id="txt"</B> /><BR><SPAN style="COLOR: #941919"><label accesskey="<B>i</B>" <B>for="txt"</B> style="cursor:hand;"><u><B>I</B></u>nput</label></SPAN><BR><input type="checkbox" <B>id="chk"</B> /><BR><SPAN style="COLOR: #941919"><label accesskey="<B>c</B>" <B>for="chk"</B> style="cursor:hand;"><u><B>C</B></u>heck</label></SPAN><BR><input type="radio" <B>id="man"</B> name="sex" /><BR><SPAN style="COLOR: #941919"><label accesskey="<B>m</B>" <B>for="man"</B> style="cursor:hand;"><u><B>M</B></u>an</label></SPAN><BR><input type="radio" <B>id="woman"</B> name="sex" /><BR><SPAN style="COLOR: #941919"><label accesskey="<B>w</B>" <B>for="woman"</B> style="cursor:hand;"><u><B>W</B></u>oman</label></SPAN><BR></form> </DIV><!-- ÀÔ·Â div ³¡--></TD></TR> <TR></TR></TBODY></TABLE><!-- »ç¿ë¹ý µé¾î°¡´Â Å×ÀÌºí ³¡--><BR><BR> <HR class=grayHr> <BR><B>Fieldset Element, Legend Element</B> <P class=mtext>Fieldset Element´Â ¾Æ·¡ÀÇ ¿¹¿Í °°ÀÌ fieldset ¾È¿¡ ÀÖ´Â ElementµéÀ» Å׵θ®·Î ¹¾î ÁÖ´Â ´Ü¼øÇÑ ¿ªÇÒÀ» ÇØ ÁÝ´Ï´Ù. Legend Element´Â Á¦¸ñÀÌ µÇ°Ú±¸¿ä... µû¶ó¼ fieldsetÀº °øÅë ¼Ó¼º¸¸À¸·Î °¡Áö°í ÀÖ°í, Legend´Â ¼öÆò Á¤·Ä(align: left, center, right) ¼Ó¼ºÀ» °¡Áö°í ÀÖ½À´Ï´Ù.</P><!-- Ãâ·Â°á°ú div ½ÃÀÛ --><B>Fieldset°ú Legend</B> <DIV class=output> <FIELDSET><LEGEND>Fieldset°ú Legend</LEGEND> <FORM><INPUT id=txt1> <LABEL style="CURSOR: hand"><U>I</U>nput</LABEL> <INPUT id=chk1 type=checkbox> <LABEL style="CURSOR: hand"><U>C</U>heck</LABEL> <INPUT id=man1 type=radio name=sex> <LABEL style="CURSOR: hand"><U>M</U>an</LABEL> <INPUT id=woman1 type=radio name=sex> <LABEL style="CURSOR: hand"><U>W</U>oman</LABEL> </FORM></FIELDSET> </DIV><!-- Ãâ·Â°á°ú div ³¡--><!-- ÀÔ·Â pre ½ÃÀÛ --><B class=pos>Source code</B> <PRE class=input><html> <head> <title>Fieldset°ú Legend</title> </head> <body> <form> <B><SPAN style="COLOR: #941919"><fieldset></SPAN> <legend>Fieldset°ú Legend</legend></B> <input type="text" id="txt" /> <label accesskey="i" for="txt" style="cursor:hand;"><u>I</u>nput</label> <input type="checkbox" id="chk" /> <label accesskey="c" for="chk" style="cursor:hand;"><u>C</u>heck</label> <input type="radio" id="man" name="sex" /> <label accesskey="m" for="man" style="cursor:hand;"><u>M</u>an</label> <input type="radio" id="woman" name="sex" /> <label accesskey="w" for="woman" style="cursor:hand;"><u>W</u>oman</label> <B><SPAN style="COLOR: #941919"></fieldset></SPAN></B> </form> </body> </html> </PRE><!-- ÀÔ·Â pre ³¡--><BR><BR><A name=tabindex></A> <HR class=grayHr> <BR><B>tabindex Attribute</B> <P class=mtext>À¥ ÆäÀÌÁö »ó¿¡¼ ¸µÅ©³ª ÀԷ¶õ ÀÌ ÀÖ´Â °æ¿ì ¸¶¿ì½º¸¦ »ç¿ëÇÏÁö ¾Ê°í Tab key¸¦ ´·¯ Ç׸ñÀ¸·Î À̵¿ÇÒ ¼ö ÀÖÀ¸¸ç, ±× ¼ø¼´Â Source¸¦ CodingÇÑ ¼ø¼¸¦ µû¸£°Ô µË´Ï´Ù. ÇÏÁö¸¸ °æ¿ì¿¡ µû¶ó¼´Â Áß°£¿¡ °Ç³Ê ¶Ù°Ô ÇÒ Ç׸ñÀ̳ª ¼ø¼¸¦ ÁöÁ¤ÇÒ ¼ö´Â ÀÖ½À´Ï´Ù. tabindex ¼Ó¼ºÀº A, AREA, BUTTON, INPUT, OBJECT, SELECT, TEXTAREA Tag µî¿¡¼ Keyboard <B>Tab</B> Key¸¦ ´·¯¼ tabindex ¼Ó¼ºÀ¸·Î ÁöÁ¤ÇÑ Ç׸ñ °£À» À̵¿ ¶Ç´Â Á¡ÇÁ½ÃÄÑ ÁÖ´Â ¼Ó¼ºÀÔ´Ï´Ù. Tab°ú IndexÀÇ µÎ ´Ü¾î¸¦ ºÙ¿©³õÀº ¼ÀÀÌÁÒ. ¿äÁò ó·³ Mouse¸¦ ¸¹ÀÌ »ç¿ëÇÏ´Â »óȲ¿¡¼ ÀÌ°Ô ¹«½¼ Çʿ䰡 ÀÖ°Ú³ª ÇϰÚÁö¸¸, Keyboard¿¡ Àͼ÷ÇÑ »ç¿ëÀڵ鿡°Ô´Â ¸Å¿ì Æí¸®ÇÑ ±â´ÉÀÔ´Ï´Ù. ¿À·£ ÀÛ¾÷À» ÇÏ´Ù º¸¸é ¸¶¿ì½º¸¦ Àâ¾Ò´Ù ³õ¾Ò´Ù ÇÏ´Â°Ô ¹«Áö ±ÍÂú°Åµç¿ä. ¿µ¾î±Ç ±¹°¡¿¡¼ ¸¹ÀÌ »ç¿ëÇѴٴ±º¿ä.<BR><BR>W3CÀÇ spec¿¡ ÀÇÇϸé 0 ~ 32767 ±îÁöÀÇ Á¤¼ö°¡ »ç¿ë °¡´ÉÇϸç ÀÌ¿ÜÀÇ ¼ýÀÚ´Â ¹«½ÃÇϰí, ºê¶ó¿ìÀú¿¡ µû¶ó '0' ÀÌ Ã¹ ¹øÂ° ÀÏ ¼öµµ ÀÖ°í ¸¶Áö¸·ÀÌ µÉ ¼öµµ ÀÖ´Ù°í ÇÕ´Ï´Ù. IE ¿¡¼´Â '0' ÀÌ ¸¶Áö¸·À¸·Î ó¸® µË´Ï´Ù. <BR><BR>ÀÌ Ã³·³ ¼ýÀÚÀÇ »ç¿ë ÆøÀÌ Å©±â ¶§¹®¿¡ ÇϳªÀÇ ¿ä·ÉÀ» ¸»ÇØ ÁÖÀÚ¸é, 1, 2, 3, 4 ¿Í °°ÀÌ Numbering ÇÏÁö ¸»°í 10, 20, 30 °ú °°ÀÌ Áß°£¿¡ ¹øÈ£¸¦ ³²°Ü µÎ¸é Áß°£¿¡ »õ Ç׸ñÀ» Ãß°¡ÇØ¾ß ÇÒ Çʿ䰡 ÀÖÀ» ¶§ ´Ù¸¥ tabindex¸¦ ¼öÁ¤ÇÏÁö ¾Ê¾Æµµ µÇ°ÚÁ®? ÀÚ¼¼ÇÑ »ç¿ë¹ýÀº </P><!-- ¼ø¼°¡ ¾ø´Â List ½ÃÀÛ --> <UL class=lineHeight> <LI class=ulColor><SPAN class=litem>ÀÏ´Ü Tab ¿¡ ÀÇÇØ ¼±ÅÃµÈ Ç׸ñÀº focus°¡ »ý±â°í</SPAN> <LI class=ulColor><SPAN class=litem>A, Area, Button °°ÀÌ Link °É¸° ±ÛÀÚ³ª ±×¸²ÀÇ °æ¿ì enter¸¦ Ä¡¸é ¸¶¿ì½º·Î Ŭ¸¯ÇÑ °Í°ú °°½À´Ï´Ù.</SPAN> <LI class=ulColor><SPAN class=litem>Input typeÀÌ textÀÎ °æ¿ì³ª Textarea ´Â ¹®ÀÚ ÀÔ·ÂÀ» ÇÏ¸é µÇ°ÚÁÒ.</SPAN> <LI class=ulColor><SPAN class=litem>Select - OptionÀÇ °æ¿ì »óÇÏ È»ìÇ¥ Ű·Î ¼±ÅÃ</SPAN> <LI class=ulColor><SPAN class=litem>Input typeÀÌ radio, checkboxÀÎ °æ¿ì Spacebar·Î ¼±ÅÃ</SPAN> <LI class=ulColor><SPAN class=litem>µÚ·Î Ç׸ñÀ» À̵¿ÇÏ°í ½ÍÀ¸¸é shift + tab</SPAN> </LI></UL><!-- ¼ø¼°¡ ¾ø´Â List ³¡--><!-- ÀÔ·Â pre ½ÃÀÛ --><B class=pos>ÀÔ·Â</B> <PRE class=input id=tab_index><html> <head> <title>tabindex Attribute</title> </head> <body> <a href="#" tabindex="10">10</a><br /> <a href="#" tabindex="11">11</a><br /> <a href="#" tabindex="20">20</a><br /> <form> <input type="checkbox" tabindex="30" />30<br /> <input type="checkbox" tabindex="40" />40<br /> <input type="radio" name="rad1" tabindex="50" />50<br /> <input type="radio" name="rad2" tabindex="60" />60<br /> <input type="radio" name="rad3" tabindex="70" />70<br /> <input type="text" tabindex="-1" />-1<br /> <input type="text" tabindex="0" />0<br /> <textarea tabindex="80"></textarea>80<br /> <button tabindex="90">90</button><br /> </form> </body> </html> </PRE><!-- ÀÔ·Â pre ³¡--><A href="javascript:copy2Clipboard(tab_index);open_window('../../../include/code_executor.asp');"><IMG alt="ÄÚµå ½ÇÇà Çϱâ" src="http://www.cadvance.org/doc/images/icon/exec_button.gif" border=0></A><BR><BR> <HR class=grayHr> <BR><B>Button Element</B> <P class=mtext>Button Element´Â Input typeÀÌ Button, submit, resetÀÇ 3°¡ÁöÀÎ °æ¿ì¿¡ ¸¸µé¾îÁö´Â Button°ú ºñ½ÁÇÏÁö¸¸ ¾à°£ÀÇ Â÷À̰¡ ÀÖ½À´Ï´Ù. ±× Â÷ÀÌ´Â</P><!-- ¼ø¼°¡ ¾ø´Â List ½ÃÀÛ --> <UL class=lineHeight> <LI class=ulColor><SPAN class=litem>Button Element´Â End TagÀÌ ÇÊ¿äÇÏ´Ù´Â Á¡.</SPAN> <LI class=ulColor><SPAN class=litem>Button ¼Ó¿¡ ³»¿ë¹°(Contents)¸¦ ³ÖÀ» ¼ö ÀÖ´Ù´Â Á¡</SPAN> <LI class=ulColor><SPAN class=litem>accesskey ¸¦ ÁöÁ¤ÇÒ ¶§ ¹ØÁÙ(U TagÀ¸·Î)À» ³ÖÀ» ¼ö ÀÖ´Ù´Â Á¡. (Input ÀÇ °æ¿ì value °ªÀÌ Button¿¡ ³ªÅ¸³ª±â ¶§¹®¿¡ ¹ØÁÙÀ» ±×À» ¼ö ¾øÁ®)</SPAN> </LI></UL><!-- ¼ø¼°¡ ¾ø´Â List ³¡--> <P class=mtext>ÀÌ¿Í °°ÀÌ Input Element¿Í ´Þ¸® ´õ ¸¹Àº È¿°ú¸¦ ³¾ ¼ö ÀÖ½À´Ï´Ù. ¿ì¼± ±×¸² ÆÄÀÏÀÌ µé¾î°£ ¿¹¸¦ Çϳª º¾½Ã´Ù.</P><!-- »ç¿ë¹ý µé¾î°¡´Â Å×ÀÌºí ½ÃÀÛ --> <TABLE class=attributeTbl cellSpacing=2 cellPadding=0 border=0> <TBODY> <TR> <TD class=titleCell colSpan=2>Button Element</TD></TR> <TR> <TD class=syntaxLeftCell>accesskey</TD> <TD class=syntaxRightCell><B>alt key</B>¿Í ÇÔ²² ´·¯¼ for·Î ÁöÁ¤ÇÑ id¸¦ °¡Áø ÀԷ¶õ¿¡ Á¢±Ù(<B>access</B> : text ÀԷ¶õ¿¡´Â focus¸¦ ¸ÂÃß°í, radio¿Í checkbox´Â ¼±ÅÃ) ÇÒ ¼ö ÀÖ°Ô ÇØÁÖ´Â <B>¿µ¹®ÀÚ 1 ±ÛÀÚ(key)</B>.</TD></TR> <TR> <TD class=syntaxLeftCell>tabindex</TD> <TD class=syntaxRightCell><A href="http://www.cadvance.org/doc/java/object/form/form_design_1.asp#tabindex">tabindex attribute</A> ÂüÁ¶</TD></TR> <TR> <TD class=syntaxLeftCell>type</TD> <TD class=syntaxRightCell><B>button(Default), submit, reset</B> ÀÇ 3°¡Áö type À̸ç INPUT ElementÀÇ <A href="http://www.cadvance.org/doc/java/object/form/input_element.asp#input_type">type attribute</A> ÂüÁ¶</TD></TR> <TR> <TD class=syntaxLeftCell>disabled</TD> <TD class=syntaxRightCell>INPUT ElementÀÇ<A href="http://www.cadvance.org/doc/java/object/form/input_element.asp#disabled">disabled attribute</A> ÂüÁ¶</TD></TR> <TR> <TD class=syntaxLeftCell>°øÅë ¼Ó¼º</TD> <TD class=syntaxRightCell>dir, id, class, style, title, ¹ß»ýÇÏ´Â Event´Â <A href="http://www.cadvance.org/doc/public/basic_structure.asp#common_attribute">°øÅë ¼Ó¼ºÇ¥ </A>¸¦ ÂüÁ¶</TD></TR></TBODY></TABLE><BR><BR><B>IMG TagÀ» Æ÷ÇÔÇÑ Button</B><BR><BR><BUTTON style="CURSOR: hand" onclick="location.href='mailto:webmaster@cadvance.org'"><B>Send E-mail</B> <IMG alt="email (1K)" src="http://www.cadvance.org/doc/images/icon/email.gif" align=absMiddle></BUTTON><BR><BR><!-- ÀÔ·Â pre ½ÃÀÛ --><B class=pos>Source code</B> <PRE class=input id=button_1><body> <<B>button</B> onclick="location.href='mailto:webmaster@cadvance.org'" style="cursor:hand;"> <<B>b</B>>Send E-mail</<B>b</B>>&nbsp;&nbsp; <<B><SPAN style="COLOR: #941919">img</SPAN></B> src="../images/icon/email.gif" align="absmiddle" alt="email (1K)" /> </<B>button</B>> </body> </PRE><!-- ÀÔ·Â pre ³¡--><A href="javascript:copy2Clipboard(button_1);open_window('../../../include/code_executor.asp');"><IMG alt="ÄÚµå ½ÇÇà Çϱâ" src="http://www.cadvance.org/doc/images/icon/exec_button.gif" border=0></A><BR><BR><BR><BR><B>Form collection ¼Ó¿¡¼ »ç¿ë ÇÒ °æ¿ì</B><BR> <P class=mtext>Button typeÀÌ submit ¶Ç´Â reset ÀÏ °æ¿ì ¹Ýµå½Ã Form collection(<form> ~ </form>) ¼Ó¿¡¼ »ç¿ëÇÕ´Ï´Ù.</P><!-- ÀÔ·Â pre ½ÃÀÛ --><B class=pos>Source code</B> <PRE class=input id=into_form><body> <form action="http://somesite.com/prog/adduser" method="post"> <P> First name: <input type="text" name="firstname"><br /> Last name: <input type="text" name="lastname"><br /> E-mail: <input type="text" name="email"><br /> <input type="radio" name="sex" value="Male"> Male<br /> <input type="radio" name="sex" value="Female"> Female<br /> <button name="submit" value="submit" type="submit"> <u>S</u>end <img align="absmiddle" src="../../images/login_icon/login_button.gif" alt="login (1K)" /> </button> <button name="reset" type="reset"> <u>R</u>eset <img align="absmiddle" src="../../images/login_icon/reset.gif" alt="register (1K)" /> </button> </P> </form> </body> </PRE><!-- ÀÔ·Â pre ³¡--><A href="javascript:copy2Clipboard(into_form);open_window('../../../include/code_executor.asp');"><IMG alt="ÄÚµå ½ÇÇà Çϱâ" src="http://www.cadvance.org/doc/images/icon/exec_button.gif" border=0></A><BR><BR><BR> <HR class=blackHr>
÷ºÎÆÄÀÏ
°ßÀû°è»êÇϱâ
ÀÛ¾÷ÀÇ·Ú
°ßÀû¹®ÀÇ
°øÁö»çÇ×