x-moz-errormessage Attribute

An example showing the x-moz-errormessage can be used to set a element's validationMessage in a declarative way.

by TJ VanToll

HTML

<form>
    <input type="text" required x-moz-errormessage="Fill this out." />
    <input type="submit" value="Submit" />
</form>