📝

005 폼 태그

<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>form</title> </head> <body> <input type="text"><br> <input type="password"><br> <input type="date"><br> <input type="time"><br> <input type="range"><br> <input type="color"><br> <input type="radio"><br> <input type="checkbox"><br> <input type="file"><br> <textarea name="name" rows="8" cols="80"></textarea> </body> </html>
<!DOCTYPE html> <html lang="ko"> <head> <meta charset="UTF-8"> <title>form</title> </head> <body> <!-- action에는 도달하는 주소를 적는데 안적으면 자기 자신 --> <form action="" method="get"> <label for="id">아이디</label> <input type="text" name="아이디" id="id"><br> <label for="pw">패스워드</label> <input type="password" name="패스워드" id="pw"><br> <label for="male">남</label> <input type="radio" name="성별" id="male" value="남"> <label for="female">여</label> <input type="radio" name="성별" id="female" value="여"><br> <p>즐겨 사용하는 프로그래밍 언어</p> <input type="checkbox" name="언어" id="python" value="Python"><label for="python">Python</label><br> <input type="checkbox" name="언어" id="python" value="Javascript"><label for="python">Javascript</label><br> <input type="checkbox" name="언어" id="python" value="C"><label for="python">C</label><br> <input type="submit" value="회원가입"> </form> </body> </html>