forms validation codes and tags

required

Your Name:

email:
Email Address:

website url:
Website:
Website:

range:
Age:
Satisfaction:

styling validation

required and valid

Input and valis=d:

7. INPUT patterns for different data types
URL input pattern:
input type=”url” pattern=”https?://.+”
IPv4 Address input pattern:
input type=”text” pattern=”\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}”
Date input pattern (dd/mm/yyyy or mm/dd/yyyy):
input type=”text” pattern=”\d{1,2}/\d{1,2}/\d{4}”
Price input pattern:
input type=”text” pattern=”\d+(\.\d{2})?”
Latitude/Longitude input pattern:
input type=”text” pattern=”-?\d{1,3}\.\d+”

To match a double-quote (“) inside a pattern you can use the hex encoding \x22.