pattern input for zip code html code example
Example: accept zip codes in html
<label>ZIP Code</label><input type="text" pattern="[0-9]{5}" title="Five digit zip code" />
<label>ZIP Code</label><input type="text" pattern="[0-9]{5}" title="Five digit zip code" />