Programming/HTML
HTML 기본 2(INPUT 타입)
juyinjang25
2016. 11. 20. 19:28
<배운 것>
1) 여러 INPUT 타입
2) 브라우저에 따라 표시가 다르게 나옴
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | <%@ page language="java" contentType="text/html; charset=EUC-KR" pageEncoding="EUC-KR"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=EUC-KR"> <title>input 타입</title> </head> <body> <form action="post.do" method="post"> number: <input type="number"/><br> date: <input type="date"/><br> month: <input type="month"/><br> range: <input type="range" name="difficulty" min="0" max="10"/><br> textarea: <textarea rows="5" cols="20">insert here</textarea><br> radio: <input type="radio" id="male" name="sex" value="0" checked> 남자 <input type="radio" id="female" name="sex" value="1"> 여자<br> </form> <p>주문 음식</p> <select> <option>짜장면</option> <option>잠뽕</option> <option>탕수육</option> </select> </body> </html> | cs |