The HTML 5 Geolocation API allows websites to locate a user's position. It is most accurate for devices with GPS like iPhones. Major browsers like Chrome, IE, Firefox and Safari support the Geolocation API. Developers can check if the API is supported and use the getCurrentPosition() method to retrieve latitude and longitude coordinates to display on a map. Code examples are provided to output location data and display it on a map using the Google Maps static API. A video also demonstrates using the Geolocation API.