What are Form Control elements in HTML?
About
control form elements are elements that are used specifically inside a form.
They are used:
List
-
input element for the definition of a scalar value on a single line such as:
textarea for the definition of a text on multiple-line
select element that create a list where a single or multiple choice can be made where
datalist to defines sets of values that may be used in a
input and shown as a list.
label [optional] label/named each element
-
-
an
output element [optional] that defines where the results / output will be shown
Successful
From a form, only successful form controls are included when the form is submited, i.e. those:
-
-
-
or selected one or more options within a
select.
Styling
If you want to style a control, you need first to disable the platform-native styling with the appearance property set to none.
Example with a checkbox
input[type="checkbox"] {
appearance: none;
}