Demo of textarea box with required attribute




Submit the form by clicking the Check button without entering any text.

HTML

<form method=post><TextArea name='txtArea1' rows="3" cols="50" required=true></TextArea>
<br>
<input type="submit" value="Check"></input></form>