min
Defines the minimum possible value for this control, which must not be greater than
the value of the max attribute.
name
Specifies the name of the control, which is used in form sub mission.
readonly
This is a Boolean attribute a nd is specified without a value. If it is present, then the
visitor cannot modify the value of the control.
step
This attribute is used together with the min and max attributes, and sp ecifies the incre-
ment at which one can set a numeric value.
type
Defines the type of the form c ontrol element. If th is attribute is not given, then the
default value text is a ssumed. Some of the possible values are:
• button: A push button.
• checkbox: A che ck box . If the type attribute is set to checkbox, then the
value attribute should also be used in order to specify the value submitted with
this item. The checked attr ibute can be used to ind ic ate that the item is initially
selected.
• number: A field for entering a floating point number. With the type attribute
set to number, the attributes value, mi n, max, a nd step are often used. If they
are not explicitly set, the default values min = 0, max = 100, and step = 1 are
used.
• password: A text field with no line breaks that obscures data entry.
• radio: A r adio button. The value that will be submitted by this element is
specified by the value attribute. Au thors can make the item selected by d efault
by including the checked attribute. The radio buttons with the same value of
the name attribute form a group, and only one button in a gro up can be selected
at a time.
• reset: A push button that r esets the values of all th e contr ol eleme nts of the
owner form to default values.
• submit: A push button that submits the form.
• text: A field for entering text with no line breaks.
value
Specifies an initial value of a control. It is optional except whe n the type attribute is
set to radio or checkbo x.
332 HTML Reference