Edit This Code:
See Result »
If you click submit, without filling out the text field, your browser will display an error message.
Result: