Html 5 uses various method to locate your place.
1) Location based on GPS (Common default method)
2) WLAN AP-based location if your GPS signal is not good
4) GLS (Google Location Service) where you find browser asking to share your location. It then sends query to local Wireless access point and determines where are you from. Then measuring the speed of signal sent, your location is determined.