html5 zip code validation 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" />