Search

0406_인풋태그와폼1

대분류
HTML4 폼
소분류
HTML4
영상
개념
<!DOCTYPE html> <html lang="ko"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> </head> <body> <form action="#"> 아이디 : <input type="text" name="id" placeholder="아이디"> <br> 비밀번호 : <input type="text" name="pw" placeholder="비밀번호"> <br> 이름 : <input type="text" name="name" placeholder="이름"> <br> <input type="submit" value="회원가입"> </form> <!-- form태그 : 사용자로부터 입력한 데이터를 다른 페이지로 전송할 때 필요한 태그 --> <!-- placeholder 속성을 통해 사용자에게 입력 창에 입력해야할 내용에 대해 설명해줄 수 있다. --> <!-- 아래 3가지 기능은 추후에 배운다. 지금은 모습에 익숙해진다. [1] form 의 action [2] input 의 name [3] input 의 submit --> </body> </html>
HTML
복사