코드:
결과보기 »
<!DOCTYPE html> <html lang="ko"> <head> <meta charset="UTF-8"> <title>HTML Input Attributes</title> </head> <body> <h1>value 속성을 이용한 초기값 설정</h1> <form action="/examples/media/request.php"> 이름 : <br> <input type="text" name="student_name"><br> 학번 : <br> <input type="text" name="student_id"><br> 학과 : <br> <input type="text" name="department" value="컴퓨터공학과"><br><br> <input type="submit" value="전송"> </form> </body> </html>