<form> 이름 : <input type=text size=12 name=user value=이정> <BR> 암호 : <input type=password size=12 name=passwd> </form> 이렇게 나와요 <form> 국적 <BR> <input type=checkbox checked name=nationality value=1> 한국인 <BR> <input type=checkbox name=nationality value=2> 미국인 <BR> <input type=checkbox name=nationality value=3> 중국인 </form> 이렇게 나와요 <form> 나이 <BR> <input type=radio name=age value=answer1 checked> 12세 이하 <BR> <input type=radio name=age value=answer2> 13-17세 <BR> <input type=radio name=age value=answer3> 18-25세 <BR> <input type=radio name=age value=answer4> 26-35세 <BR> <input type=radio name=age value=answer5> 36세 이상 </form> 이렇게 나와요 <form> 파일을 올려주세요. <input type=file name=photo size=20 accept="image/*"> </form> 이렇게 나와요 <form> <input type=submit value="다 됐어요"> <input type=reset value="다시 할래요"> </form> 이렇게 나와요 <form> <input type=image name=point src="../image/button.gif" border=0> </form> 이렇게 나와요
속성
type = text | password | checkbox | radio | submit | reset | file | hidden | image | button
name = 문자열
value = 문자열
size = 숫자
maxlength = 숫자
checked
src = "URL"
readonly
disabled
tabindex = 숫자