An example of using CSS :invalid pseudoselector with the HTML5 pattern attribute for form validation with inline error messages