-
Notifications
You must be signed in to change notification settings - Fork 0
Forms, Forms, and More Forms; or, Why I Love Filling Out Forms!
action send the user's data to the server. Usually a URL.
method is either GET or POST. GET sends data via the address bar. POST sends the data securely.
The label and id attributes match to each other.
The form element ties together all the form fields to send the data together to the server. You should have only one form field per webpage.
label tells the user what the form field does. It connects the control to the form field. It increases visibility and accessibility. Highlights field when the user clicks the label. This makes a bigger field for the user to click on.
Hidden fields can act as default values for checkboxes. If no checkboxes are checked it's bad to send nothing to the server. A hidden field can send the data "no checkbox clicked."
With checkboxes the users should be able to click on the label or the checkbox.