Improve your form validation hints without JS!

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

IntermediateUIWeb Design13 min

About this video

Shows how to improve native HTML form validation messages and hints for password and email fields using only HTML and CSS, without JavaScript. Covers simple password rules and email validation, with a note that server-side validation is still needed.

What you’ll learn

  • Style native form validation hints using CSS alone
  • Add password requirement checks to an HTML form without JavaScript
  • Validate email fields with pattern attributes and regular expressions