[Form] max option of Length & Range Constraint

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #11527
| License       | MIT
| Doc PR        | 

Extended option "pattern" because  "max_length"  has been marked as deprecated since 2.5
guessing ``min`` and ``max`` attributes (supported by the ``number`` type in HTML5) is better for the Range constraint