Is it best to use a \'text\' attribute with a limit on the number of characters, or can I use a number attribute in an input for a zipcode.
Just trying to get my head ar
There are various options from my POV, but I think the best is already given by Md Johorul Islam: the pattern attribute.
The options:
attribute);type=text with a maxlength.Note: Despite these options: always validate server side!