<input type="password" /> Description:
The <input type="password" /> tag submits passwords to the form.
<input type="password" /> Web Browser Support:
- AvantGo Palm OS
- AvantGo Windows CE
- Firefox 1, 2
- Internet Explorer 2, 3, 4, 5, 6, 7
- Mozilla 1
- Netscape 2, 3, 4, 6, 7, 8
- Opera 3, 4, 5, 6, 7, 8, 9
- Safari 1, 2
- WebTV / MSNTV
- HTML 3.2, 4.0
- XHTML 1.0
XHTML Forms Module XHTML Intrinsic Events Module
<input type="password" /> Attributes:
All attributes are optional unless indicated.
- All the attributes of the input tag, plus:
- disabled
- maxlength
- name
- readonly
- size
- type="password"
- usestyle (WebTV)
- value
- width (WebTV)
<input type="password" /> Usage:
- standard password field:
<form>
<input type="password" /> </form> - password field with pre-populated data:
<form>
<input type="password" value="clickhere" /> </form>
- password field with some styles added:
<form>
<input type="password" value="secretpassword" style="background-color:#cc0000; color: #ffffff;" />
</form>
<input type="password" /> Special Notes:
- Password fields act exactly like text fields, except the text entered is not displayed on the browser screen.
- Using a password field will hide the text submitted, but if it's not submitted on a secure server, it still can be intercepted and read.
More <input type="password" /> Information:
Return to the <input /> Element
Return to XHTML Element (HTML Tags) Library

