With the attribute required
, for example, in a field of type text
, the browser will present a balloon to the user to realize that this field is required and should be filled in.
The problem starts with the message itself being generic does not help the user. On the other hand, the message refers to the language of the browser and not the language of the application itself.
<form>
<input type="text" required>
<button type="submit">Enviar</button>
</form>
When I click on "Send" without filling in the field, in Firefox in English I will get the message:
Please fill out this field.
Question
How can we customize the message that the browser displays for a input
with the required
attribute?