Skip to main content

Official websites use .gov
A .gov website belongs to an official government organization in the United States.

Secure .gov websites use HTTPS
A lock ( ) or https:// means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.

Contact Form

Contact forms allow users to send messages or inquiries to an organization. This pattern demonstrates accessible form validation and proper field grouping.

Basic Contact Form

A simple contact form with required fields and validation.

Contact us

* indicates a required field

Please enter your full name.

Please enter a valid email address.

Format: (555) 555-5555

Please select a subject.

Please enter your message.

Contact Form with Success State

A contact form showing successful submission feedback.

Message sent successfully

Thank you for contacting us. We'll respond within 2-3 business days. A confirmation has been sent to your email address.

Simple Contact Form

A minimal contact form for quick inquiries.

Send us a message

Contact Form with File Upload

A contact form that allows users to attach files to their message.

Submit a request
Please describe your issue or question
Accepted formats: PDF, JPG, PNG. Maximum file size: 10MB.

Contact Information Block

Display contact information alongside a form.

Send a message

Contact information

Phone
(800) 555-1234

Email
contact@example.gov

Hours
Monday–Friday, 8am–6pm ET

Mailing address
General Services Administration
1800 F Street NW
Washington, DC 20405

Accessibility Considerations

When building contact forms:

  • Mark required fields with both visual indicators and aria-required
  • Provide hint text for format requirements using usa-hint
  • Use autocomplete attributes for common fields (name, email, phone)
  • Group related fields with fieldset and legend
  • Ensure error messages are associated with fields via aria-describedby
  • Use role="alert" for error summaries to announce them immediately

agency.gov

An official website of the Agency

Looking for U.S. government information and services?
Visit USA.gov