What html5 form attribute should be used for a zipcode? June 5, 2023 by Tarik You can try this <Label>ZIP Code</Label><input type="text" pattern="[0-9]{5}" title="Five digit zip code" />