In the Forms 101 unit we worked with a simple text input form field.
In this unit I want to introduce you to a variety of other fiends you can use.
We’ll expand the textual field types, then we’ll add other kinds of fields: checkboxes, radio buttons, textarea, select, and more.
Each field accepts those attributes:
classas any HTML element to assign an unique identifier and HTML classes
nameto give a label to the data
valueto set the initial value
requiredto set the field as required
disabledto set the field as disabled (grayed out and not editable)
readonlyto set the field as read only (not editable)
placeholdersets a placeholder for the field, similar to value as it’s displayed in the field, but not sent to the server
autofocusput on a single form field in the page, the browser will put its focus on that field on page load
Lessons this unit:
|1:||Form submit field|
|2:||Specialized input fields|
|5:||File input fields|
|8:||Autocompleting form fields|