How to Set Custom Error Messages for Your HTML Forms

How to Set Custom Error Messages for Your HTML Forms

Kevin Powell via YouTube Direct link

36:40 - Fixing the layout when error messages appear

13 of 13

13 of 13

36:40 - Fixing the layout when error messages appear

Class Central Classrooms beta

YouTube videos curated by Class Central.

Classroom Contents

How to Set Custom Error Messages for Your HTML Forms

Automatically move to the next video in the Classroom when playback concludes

  1. 1 00:00 - Introduction
  2. 2 03:00 - Using novalidate and manually checking validation
  3. 3 09:30 - Checking all the form fields
  4. 4 15:00 - Adding error messages
  5. 5 17:30 - Removing the error elements when they are empty
  6. 6 18:52 - Styling for the error states
  7. 7 20:20 - aria-live=”polite”
  8. 8 22:00 - Custom text for each error message
  9. 9 25:25 - Adding the errors for the radio buttons
  10. 10 29:00 - Adding error messages when the user moves out of a form field
  11. 11 32:45 - Removing error messages when a user fixes the problem
  12. 12 34:00 - Adding focus to the first invalid element on submit
  13. 13 36:40 - Fixing the layout when error messages appear

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.