Create a Form
Form creation patterns demonstrate different field types, layouts, and validation approaches for building accessible government forms.
Complete Registration Form
A comprehensive form with multiple field types demonstrating common patterns.
Form with Input Groups
Forms using input prefixes and suffixes for better context.
Form with Character Count
A form with a textarea that includes a character counter.
Multi-Section Form
A form organized into multiple sections with a step indicator.
Form with Conditional Fields
A form that shows/hides fields based on user selection.
Accessibility Considerations
- Use
autocompleteattributes on all personal data fields - Group related fields with
fieldsetandlegend - Provide hint text for format requirements
- Use
aria-describedbyto associate hints and errors with inputs - Ensure form labels are properly associated with inputs
- Use
aria-requiredfor required fields in addition to visual indicators - Test keyboard navigation and screen reader compatibility