HTML and CSS Reference
In-Depth Information
sessiOn 6.3 visual Overview
The
focus
,
valid
, and
invalid
pseudo-elements can be
used for
inline
validation
, in
which data errors are
highlighted as they occur
during data entry.
The
required
data type
indicates that a value is
required for the field, and
the form will be rejected
without it.
The
number
data type
creates a spin box; the
min
and
max
attributes define
the minimum and maximum
values, respectively, the
step
attribute defines the
amount the value increases
or decreases with each click
of the spin arrow.
The
submit
d
a
ta type
displays a submit button
used to submit the form to
the server; the
value
attribute specifies the
button text.
Ariwasabi/Shutterstock.com