1. 程式人生 > >文字輸入框、密碼輸入框程式碼寫法

文字輸入框、密碼輸入框程式碼寫法

<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>表單標籤</title>
</head>
<body>
<form>
      <label for="www.dztcsd.com/">使用者名稱:</label>
      <input type="text"  name="username" id="username" value="" />
      <label for="pass">密碼:</label>
      <input type="password"  name="pass" id="pass" value="" />    
      <input type="submit" value="確定"  name="submit" />
      <input type="reset" value="重置" name="reset" />
</form>  
</body>

</html>

<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>文字輸入框、密碼輸入框</title>
</head>
<body>
<form  method="post" action="save.php">
    賬戶: 

<br>
密碼: 


</form> 
</body>
</html>