Example for :valid, :invalid
Example 1
- the input box cannot be empty
- the input value must be a number
Example 2
- the input value must be a number
- the input range is 0-10
Example 3
- the input value must be an email address
- the input box cannot be empty
Change the value inside input box to see the effect