국비지원 Spring프레임워크/HTML
Form 태그
대엽
2020. 11. 3. 10:15
Form 태그란? 사용자가 입력한 데이터를 한번에 전송하게 해주는 태그.
그런데 점점 사용을 안하는 추세라고 한다.
input type 실습을 해봤다.
데이터 전송 태그
소스 코드
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | <html> <body> <h1>데이터 전송 태그</h1> <hr> <form action="https://www.naver.com"> <input type="text" name="username" placeholder="유저네임을입력" required/><br/> <input type="password" name="password" placeholder="password를입력" required/><br/> <input type="email" name="email" placeholder="이메일을입력" required/><br/> <input type="date" name="date" id=""><br/> <input type="checkbox" name="checkbox"><br/> <input type="text" name="address" placeholder="주소를입력하세요" readonly><br/> <button>회원가입</button> </form> </body> </html> | cs |