views:

24

answers:

2

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
Ok, but i always do client-side and server-side validation. Thank you.
joao
A: 

I typically would use a div with an error or notice class to show errors.

Josh K