텍스트 입력 필드<input>
type 속성만 바꾸면 키보드 종류와 형식 검사가 함께 달라집니다.
<label for="name">텍스트 · Text</label> <input type="text" id="name" placeholder="홍길동"> <label for="pw">비밀번호 · Password</label> <input type="password" id="pw" placeholder="••••••••"> <label for="mail">이메일 · Email</label> <input type="email" id="mail" placeholder="hong@example.com"> <label for="age">숫자 · Number</label> <input type="number" id="age" min="0" max="120" placeholder="25">
text password email number tel url search