Re: Proposing a syntax for styling form validation messages

> Forms that are validated in HTML5 display a message if errors are found during validation . Currently these error messages are given default styles by the browser, but there will be a requirement for developers to over-rule those styles.

For more finer-grained control over invalid fields, could you not use the CSS3 UI pseudo classes?
http://www.w3.org/TR/css3-ui/

input:required:invalid + .error { }

This way you could customize the messaging any way you wish.

Jonathan.

Received on Wednesday, 31 August 2011 18:05:09 UTC