html form field name max length code example Example: html input max vs maxlength <input type="text" maxlength="4"/>