"HTML 라디오 버튼 LABEL 지정"의 두 판 사이의 차이

1번째 줄: 1번째 줄:
*HTML RADIO 버튼
*HTML 라디오 버튼


==예시 1==
==예시 1==
ID 지정.
ID 지정.
<source lang='html5'>
<source lang='html5'>
<INPUT TYPE='radio' ID='r1' NAME='group1' VALUE='apple' /><LABEL FOR='r1'>사과</LABEL>
<input TYPE='radio' ID='r1' name='group1' value='apple' /><label FOR='r1'>사과</label>
<INPUT TYPE='radio' ID='r2' NAME='group1' VALUE='banana' /><LABEL FOR='r2'>바나나</LABEL>
<input TYPE='radio' ID='r2' name='group1' value='banana' /><label FOR='r2'>바나나</label>
<INPUT TYPE='radio' ID='r3' NAME='group1' VALUE='lemon' CHECKED /><LABEL FOR='r3'>레몬</LABEL>
<input TYPE='radio' ID='r3' name='group1' value='lemon' checked /><label FOR='r3'>레몬</label>
</source>
</source>


12번째 줄: 12번째 줄:
ID 미지정.
ID 미지정.
<source lang='html5'>
<source lang='html5'>
<LABEL><INPUT TYPE='radio' NAME='group1' VALUE='apple' />사과</LABEL>
<label><input TYPE='radio' name='group1' value='apple' />사과</label>
<LABEL><INPUT TYPE='radio' NAME='group1' VALUE='banana' />바나나</LABEL>
<label><input TYPE='radio' name='group1' value='banana' />바나나</label>
<LABEL><INPUT TYPE='radio' NAME='group1' VALUE='lemon' CHECKED />레몬</LABEL>
<label><input TYPE='radio' name='group1' value='lemon' checked />레몬</label>
</source>
</source>



2012년 1월 19일 (목) 17:47 판

  • HTML 라디오 버튼

1 예시 1

ID 지정.

<input TYPE='radio' ID='r1' name='group1' value='apple' /><label FOR='r1'>사과</label>
<input TYPE='radio' ID='r2' name='group1' value='banana' /><label FOR='r2'>바나나</label>
<input TYPE='radio' ID='r3' name='group1' value='lemon' checked /><label FOR='r3'>레몬</label>

2 예시 2

ID 미지정.

<label><input TYPE='radio' name='group1' value='apple' />사과</label>
<label><input TYPE='radio' name='group1' value='banana' />바나나</label>
<label><input TYPE='radio' name='group1' value='lemon' checked />레몬</label>


3 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}