size: HTML attribute

The size attribute defines the width of the <input> and the height of the <select> element. For input, if the type attribute is text or password , it is the number of characters. Must be an integer value of 0 or greater. If no size is specified, or an invalid value is specified, the input does not have a declared size and the form control will be the default width according to the user agent. If CSS targets the element with properties that affect width, CSS takes precedence.

The size attribute has no impact on constraint validation.