First of all the Geolocation API is not part of HTML5.
Secondly, the API will use whatever is available in attempting to return the position. If the phone has GPS turned on, it will use that, if not, it will use the cell tower it's attached to or the WiFi connection. Basically it will do the best job that it can based on the data available to it.