HTML and CSS Reference
In-Depth Information
min="
number
"
name="
name
"
placeholder="
text string
"
readonly
(
readonly="readonly"
in XHTML)
required
(
required="required"
in XHTML)
step="any
|number
"
value="
text or number string
"
input type=
"
password
"
Creates a text input element (like
<input type="text">
), but the input text is rendered in a
way that hides the characters, such as by displaying a string of asterisks or bullets. Note that
this does
not
encrypt the information entered and should not be considered to be a real secur-
ity measure:
<input type="password"
name="password" size="8"
maxlength="8" value="abcdefg"
>
HTML5 Global Attributes
autocomplete="on|off"
(
Not in HTML 4.01
)
autofocus
(
autofocus="autofocus"
in XHTML) (
Not in HTML 4.01
)
disabled
(
disabled="disabled"
in XHTML)
form="
id of form owner
"
(
Not in HTML 4.01
)
maxlength="
number
"
name="
text
"
pattern="
JavaScript regular expression
"
(
Not in HTML 4.01
)
placeholder="
text
"
(
Not in HTML 4.01
)
readonly
(
readonly="readonly"
in XHTML)
required
(
required="required"
in XHTML) (
Not in HTML 4.01
)