(One intermediate revision by the same user not shown) | |||
Line 2: | Line 2: | ||
password | password | ||
===Type=== | ===Type=== | ||
− | + | input | |
===Synopsis=== | ===Synopsis=== | ||
How to use the password field for input | How to use the password field for input | ||
Line 8: | Line 8: | ||
When using the password field, people cannot see what they are typing. | When using the password field, people cannot see what they are typing. | ||
===Parameters=== | ===Parameters=== | ||
− | + | input type="password" | |
===Example=== | ===Example=== | ||
<syntaxhighlight lang="html"> | <syntaxhighlight lang="html"> | ||
− | < | + | <input type="password" name="pass" placeholder="Type your password" required="required" /> |
</syntaxhighlight> | </syntaxhighlight> | ||
− | < | + | <input type="password" name="pass" placeholder="Type your password" required="required" /> |
===Note=== | ===Note=== | ||
All attributes for a password input field are supported (like in this case : name, placeholder and required). Obviously never use form action="GET" when using a password field, always use POST. | All attributes for a password input field are supported (like in this case : name, placeholder and required). Obviously never use form action="GET" when using a password field, always use POST. | ||
===Links=== | ===Links=== | ||
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/password | https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/password | ||
ws-class-props | |||
---|---|---|---|
Line 1: | Line 1: | ||
{{Doc properties | {{Doc properties | ||
− | |Subject version=2.0 | + | |Subject version=2.0,2.1 |
|Doc subject=DevOps:Doc/FlexForm | |Doc subject=DevOps:Doc/FlexForm | ||
|Doc parent=DevOps:Doc/FlexForm/1.0/input | |Doc parent=DevOps:Doc/FlexForm/1.0/input |
Latest revision as of 21:03, 31 March 2023
Name
password
Type
input
Synopsis
How to use the password field for input
Description
When using the password field, people cannot see what they are typing.
Parameters
input type="password"
Example
<input type="password" name="pass" placeholder="Type your password" required="required" />
Note
All attributes for a password input field are supported (like in this case : name, placeholder and required). Obviously never use form action="GET" when using a password field, always use POST.
Links
https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/password