accept zip codes in html

HTML
<label>ZIP Code</label><input type="text" pattern="[0-9]{5}" title="Five digit zip code" />
Source

Also in HTML: