Select field with two possible value
Radio button with two possible values
Option 1
Option 2
Checkbox: value either on or off
Checkbox
Input restricted to max 5 characters
Readonly input field


Field 1: exactly three lowercase characters(^[a-z]{3}$)

Field 2: exactly three digits(^[0-9]{3}$)

Field 3: letters, numbers, and space only(^[a-zA-Z0-9 ]*$)

Field 4: enumeration of numbers (^(one|two|three|four|five|six|seven|eight|nine)$)

Field 5: simple zip code (^\d{5}$)

Field 6: zip with optional dash four (^\d{5}(-\d{4})?$)

Field 7: US phone number with or without dashes (^[2-9]\d{2}-?\d{3}-?\d{4}$)