Page 92 - HTML5
P. 92

Parameter        Details

                           checkbox, radio, file or button.


                           HTML5 Indicates a value must be present or the element must be checked in
          required
                           order for the form to be submitted

          alt              An alternative text for images, in case they are not displayed.


          autofocus        The <input> element should get the focus when page loads.


          value            Specifies the value of <input> element.

                           The step attribute specifies the legal number intervals. It works with the
          step
                           following input types: number, range, date, datetime-local, month, time and week.



        Remarks



        As with other HTML5 void elements, <input> is self-closing and may be written <input />. HTML5
        does not require this slash.

        The following are valid input types in HTML:

            •  button
            •  checkbox
            •  file
            •  hidden
            •  image
            •  password
            •  radio
            •  reset
            •  submit
            •  text (default value)

        5


        The following are newly introduced input types as a part of HTML 5 standard. Some of these types
        are not supported by all web browsers. In the case where a type is not supported, the input
        element will default to the text type.

            •  color
            •  date

            •  datetime (Deprecated and Obsolete)
            •  datetime-local
            •  email
            •  month
            •  number
            •  range
            •  search
            •  tel
            •  time
            •  url


        https://riptutorial.com/                                                                               76
   87   88   89   90   91   92   93   94   95   96   97