Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 11 months ago

contact-form

calvinvin•1,200
@calvinvin
A solution to the Contact form challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


What are you most proud of, and what would you do differently next time?

Learning point:

  1. styling checkbox and radio inputs while remaining their accessibility.
  2. built-in form validation. Some pitfalls:
  • no "pattern" attribute on textarea elements.
  • pseudo-class :out-of-range not applicable on scenario of text type with minlength and maxlength, only works on number type with min and max.
  1. first time styling a form as complicated as this one.
  2. some styling consideration on if setting as grid. The legend width decreased but I still don't know why, and setting text-wrap: no wrap can somewhat make it work.

Aria-labels to let screen readers announce the error message were not yet learned and practiced, but maybe later.

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on calvinvin's solution.

Join our Discord community

Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!

Join our Discord

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License