Zipcodes are not great for reliably describing locations. They're collections of multiple postal delivery routes, and that's it. There's no guarantee that any given zipcode lies within a single city, or a single state, or that it lies within the boundaries of the US at all, or that it's contiguous, or that it's stationary (there are some for boats), or that any given location only has one, etc., etc. People think this is a good idea because their particular case happens to work well, but zip codes are rife with edge cases.
As pointed out by many comments, the post seems US-centric and using zip code doesn't work for all countries.
But just for reference, in Singapore, we use 6-digit zip codes, each of which can uniquely locate a single building, so yes, a lot of local websites essentially just expect a zip code plus unit number, without the hassle of typing out the address at all.
Maybe what I wanted to say is, the idea is cool and _can_ work to enhance user experience with proper localization.
Zipcodes are not great for reliably describing locations. They're collections of multiple postal delivery routes, and that's it. There's no guarantee that any given zipcode lies within a single city, or a single state, or that it lies within the boundaries of the US at all, or that it's contiguous, or that it's stationary (there are some for boats), or that any given location only has one, etc., etc. People think this is a good idea because their particular case happens to work well, but zip codes are rife with edge cases.
Autofill
> If you're asking for a ZIP code, use inputmode="numeric"
Does this work for zips? Some zips have a leading 0.
Phew! Somebody had to say it. Finally thank you
As pointed out by many comments, the post seems US-centric and using zip code doesn't work for all countries.
But just for reference, in Singapore, we use 6-digit zip codes, each of which can uniquely locate a single building, so yes, a lot of local websites essentially just expect a zip code plus unit number, without the hassle of typing out the address at all.
Maybe what I wanted to say is, the idea is cool and _can_ work to enhance user experience with proper localization.