<label for="animal">What is your favorite animal? (required)</label> <input required pattern="[a-z]{2,20}" type="text" id="animal" name="animal">