form태그 : block레벨
정보를 전달할 수 있는 태그
form태그 안에 있는 정보들 중에서 name과 value를 가지고 있는 요소들의 정보를 넘긴다. /
정보를 넘길 때는 무조건 submit 버튼 사용
radio 필수 확인 : name과 value둘 다 필요하다. value가 없으면 어떤 버튼이 눌렸는지 모름
checkbox 필수 확인 : name만 있어도 됨. name 눌렸는지 확인만 하면 되니까. 그룹필 필요 없으니까
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<form action="./99.form.html" method="get" target="_self" autocomplete="off">
<input type="text" name="아이디" placeholder="아이디를 입력하시오"> <br>
<input type="password" name="비번" placeholder="비번을 입력하시오"><br>
<br>
<label><input type="radio" name="className" value="web1">웹1</label>
<label><input type="radio" name="className" value="web2">웹2</label><br>
<input type="checkbox" name="프론트">프론트
<input type="checkbox" name="백엔드">백엔드
<input type="checkbox" name="풀스택">풀스택 <br>
<br>
<input type="submit" value="확인">
<input type="reset" value="리셋">
</form>
</body>
</html>
가치 있는 정보 공유해주셔서 감사합니다.