HTML CSS examples for HTML Tag:input
Restricted Data type Values
Type | Description | New in HTML5 |
---|---|---|
checkbox | Restricts the input to a true/false check box. | No |
color | Restricts the input to a color. | Yes |
date | Restricts the input to a date. | Yes |
datetime | Restricts the input to a global date and time with time zone. | Yes |
datetime-local | Restricts the input to a global date and time without time zone. | Yes |
Restricts the input to a properly formatted e-mail address. | Yes | |
month | Restricts the input to a year and month. | Yes |
number | Restricts the input to an integer or floating-point number. | Yes |
radiobutton | Restricts the input to a fixed set of choices. | No |
range | Restricts the input to a specified range. | Yes |
tel | Restricts the input to a properly formatted telephone number. | Yes |
time | Restricts the input to a time of day. | Yes |
week | Restricts the input to a year and week. | Yes |
url | Restricts the input to a fully qualified URL. | Yes |
<html> <head></head> <body></body> </html><!--from w w w. jav a 2s. c o m-->