<form method=post action='test.html'>
<p><label for='userpassword'>密碼:</label>
<input type=password name='userpassword' id='userpassword' size=16>
<input type='submit' value='送出'>
</form>

type=password
勢將輸入型態指定為密碼型態。輸入出來的字,都以 "*" 表示