HTML Tutorial
HTML Form Tutorial
Learn How To add a Password Field to a Form
The following HTML code example shows how to add a password field to a form.
<form>
Username:
<input type="text" name="user">
Password:
<input type="password" name="password">
</form>
The above HTML code produces the following example.
Data that is entered into the password field is shown as encrypted.
Try it yourself.
Other HTML Form Tutorials
HTML Form Tutorial - Checkbox
This html forms tutorial shows you how to make checkboxes, which users can use to select and unselect multiple items.
HTML Form Tutorial - Radiobutton
This html code example shows you how to make radiobuttons in HTML forms.
HTML Form Tutorial - Drop Down Box
This html code example shows you how to create drop down boxes.
Previous Tutorial HTML Table Tutorial
Learn CSS with our CSS Tutorials