HTML geolocation playground

Explore <geolocation> as a declarative browser-managed location control, adjust its attributes, and copy the HTML with fallback content. This declarative option is useful because the browser owns a contextual, trusted permission UI, reduces imperative JavaScript, and better reflects explicit user intent.

Ask AI

HTML geolocation playground

Response generated with openai/gpt-5.4-nano. AI can make mistakes. Always review the result.
Your browser doesn't support the geolocation element.
HTML
<geolocation accuracymode="precise">
  Your browser doesn't support the geolocation element.
</geolocation>