Page 99 - HTML5
P. 99

<input type="reset" value="Reset">


        An input of type reset creates a button which, when clicked, resets all inputs in the form it is
        contained in to their default state.


            •  Text in an input field will be reset to blank or its default value (specified using the value
              attribute).
            •  Any option(s) in a selection menu will be deselected unless they have the selected attribute.
            •  All checkboxes and radio boxes will be deselected unless they have the checked attribute.


        Note: A reset button must be inside or attached to (via the form attribute) a <form> element in order
        to have any effect. The button will only reset the elements within this form.

        Number


        5


         <input type="number" value="0" name="quantity">


        The Input element with a type attribute whose value is number represents a precise control for
        setting the element’s value to a string representing a number.

        Please note that this field does not guarantee to have a correct number. It just allows all the
        symbols which could be used in any real number, for example user will be able to enter value like
        e1e-,0.


        Tel



         <input type="tel" value="+8400000000">


        The input element with a type attribute whose value is tel represents a one-line plain-text edit
        control for entering a telephone number.


        Email


        5

        The <input type="email"> is used for input fields that should contain an e-mail address.


         <form>
           <label>E-mail: <label>
           <input type="email" name="email">
         </form>


        E-mail address can be automatically validated when submitted depending on browser support.

        Button






        https://riptutorial.com/                                                                               83
   94   95   96   97   98   99   100   101   102   103   104