<form> 태그는 로그인 창, 회원가입 창, 삼품등록 창 등에 활용된다.
name | 폼의 이름 |
action | 폼 데이터가 전송되는 백엔드 url |
method | 폼 전송 방식 (GET / POST) |
또한 <input> , <button> 태그와 함께 자주 활용된다. (이전 포스트 참고)
<button> 태그의 type속성
submit | form 제출 |
reset | form 리셋 |
button | 버튼의 형태만 만듦 |
예시)
<form action="/member/login" method="post">
<ul>
<li>
<input type="text" name="email" placeholder="이메일">
</li>
<li>
<input type="password" name="pass" placeholder="비밀번호">
</li>
<li>
<button>로그인</button>
</li>
</ul>
</form>
'Html & Css' 카테고리의 다른 글
[HTML / table 태그] tr, td 태그 등 (0) | 2022.12.09 |
---|---|
[HTML / input 태그] type, value, name 등 (0) | 2022.12.08 |