DEV Community

Discussion on: HTML autocomplete value for "city"

khorengrig profile image

What about this? address-level2 . I have used this on my react form and its works great.

meetdave3 profile image
Meet Dave Author

As far as I see, using the address-level(n) may turn out to be complex as it varies from country to country. Quoting on the MDN docs here, if you see the section for United Kingdom, the town / city corresponds to address_level1 :)