Recipe 7.4
Making a Form Field Required
Code
HTML
<label for="username">Username</label>
<input type="text" name="username" id="username" required>