(1)
form: 사용자로 부터 어떤 정보를 받고 싶을 때 사용!
속성
ex.<from action="API 주소" method="GET &POST">
post : 정보에 대한 양이 많을 때 사용!
get : 그렇지 않을 때 사용!
(2)
input:<input type="?">, 기본정인 속성이 있고 type안에 text, email, password, number, tel, file and more....다양한 속성들이 존재한다.
-<input type="text">,텍스트 만들기
-<input type="text" placeholder="이름을 입력하세요.">안내문구 알려줄 때, placeholder속성 사용.
-<input type="text" placeholder="아이디를 입력하세요." maxlength="13">,
문자를 제한하고 싶을 때 maxlength사용.
-<input type="text" placeholder="아이디를 입력하세요."minlength="5" maxlength="13">, 최소 5자리이상 쳐야되는 경우 minlength사용
-<input type="text" placeholder="아이디를 입력하세요."minlength="5" maxlength="13" required>, 반드시 입력해야 하는 경우는 required를 적어주면 된다.
-<input type="text" placeholder="비밀번호를 입력하세요."minlength="5" maxlength="13" disabled><br>, disabled는 못치게 막아두는 것이다.
-<input type="text" placeholder="비밀번호를 입력하세요."minlength="5" maxlength="13" value="이승민"><br>, value를 넣으면 기본적으로 들어가는 것이다.