button
그냥 버튼 ㅇㅇ
스타일 커스텀
:hover 로 버튼 위에 마우스 올렸을 떄 모습 커스텀:active 로 버튼이 눌렸을 때 모습 커스텀form과 연계
form attribute
<form>요소의
id 값과 동일하게 지정하면 됨.또는 form 안에 버튼을 넣어도 자동으로 연결됨.
type
submit(제출)
reset(모든 컨트롤을 초깃값으로 되돌림)
button(기본행위 없음)
formaction
type=submit일 경우 제출한 정보를 처리할 URL 지정
formenctype (인코딩 타입 지정)
application/x-www-form-urlencoded(기본값)
multipart/form-data파일 전송의 경우.
text/plain(디버깅 전용으로 추가된 값. 실제론 쓰지말기)
formmethod (http method)
폼 양식 전송 시 사용할 http method
post(실제로 write 되어야 하는 경우)
get(검색 등)