What element should I use to show validation messages (errors) to the user? Which one is more semantic in HTML5?
+1
A:
I would use javascript to show a javascript error box containing the erro(s).
EDIT: For server side validation we use a <div>
that gets filled after an ajax call.
Thariama
2010-10-01 14:08:25
Ok, but i always do client-side and server-side validation. Thank you.
joao
2010-10-01 14:09:44
A:
I typically would use a div
with an error
or notice
class to show errors.
Josh K
2010-10-01 14:10:27