Page 91 - HTML5
P. 91

Chapter 22: Input Control Elements




        Introduction



        A key component of interactive web systems, input tags are HTML elements designed to take a
        specific form of input from users. Different types of input elements can regulate the data entered to
        fit a specified format and provide security to password entry.


        Syntax


            •  <input type="" name="" value="">


        Parameters




          Parameter        Details


          class            Indicates the Class of the input

          id               Indicates the ID of the input


                           Identifies the type of input control to display. Acceptable values are hidden,
                           text, tel, url, email, password, date, time, number, range, color, checkbox, radio,
          type
                           file, submit, image, reset, and button. Defaults to text if not specified, if the
                           value is invalid, or if the browser does not support the type specified.

          name             Indicates the name of the input


                           Boolean value that indicates the input should be disabled. Disabled controls
          disabled
                           cannot be edited, are not sent on form submission, and cannot receive focus.

                           When the value of the type attribute is radio or checkbox, the presence of this
          checked          Boolean attribute indicates that the control is selected by default; otherwise it
                           is ignored.


                           HTML5 Indicates multiple files or values can be passed (Applies only to file
          multiple
                           and email type inputs )


                           HTML5 A hint to the user of what can be entered in the control . The
          placeholder
                           placeholder text must not contain carriage returns or line-feeds

                           HTML5 Indicates whether the value of the control can be automatically
          autocomplete
                           completed by the browser.


                           Boolean value that indicates the input is not editable. Readonly controls are
          readonly         still sent on form submission, but will not receive focus. HTML5: This attribute
                           is ignored when the value of type attribute is either set to hidden, range, color,


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