<geolocation>
A browser-rendered control for sharing the user's location — the browser owns the permission UI.
Experimental — limited availability · Interactive
When to use it
Experimentally, for store finders and 'near me' features: listen for its location event and read .position; put a fallback button inside for other browsers.
When not to
Chromium-only and experimental — always feature-detect HTMLGeolocationElement and fall back to navigator.geolocation.
Key attributes
autolocate- fetch on render if already permitted
watch- continuous updates
Example
<geolocation watch>
<button id='geo-fallback' type='button'>Use my location</button>
</geolocation>