You might have noticed in the beginning of the chapter that we were using new attributes such as min
, max
, and step
. These are new attributes that are defined in the HTML5 specification that allow developers to specify additional configuration on the input element. Some important attributes are discussed in the following list:
max
: Applicable to the Number, Range, and Date fields; allows specification of maximum value in the input.min
: Applicable to the Number, Range, and Date fields; allows specification of a minimum value in the input.step
: Applicable to the Number, Range, and Date fields; allows specification of an increment value in the input.list
: Applicable to various textbox style inputs. Allows developers to map the field to a data list, thus allowing end users to pick them from the list.placeholder
: Applicable to various textbox style inputs. Allows developers to show placeholder text until the element gains focus.