The new geolocation function in HTML5 adds the functionality to the browser necessary to detect the user’s location, generate co-ordinates, and return them as values back to the user.In today’s tutorial, you’ll learn how to fetch the latitude and longitude co-ordinates using nothing more than a few lines of HTML and JavaScript.