If I create an input control like this:
And type letters in it, an error will be displayed in a popup-like co
This is what you are talking is HTML5 feature use required
attribute with your form element
and it will show you default error message but if you want to show custom error message than use title
attribute
Check this URL for more information http://demosthenes.info/blog/848/Create-Custom-HTML5-Form-Error-Messages-with-the-Title-Attribute
Hope it will answer your question