What was the browser you used and did you used Mobile Data or WiFi?
If you use Mobile Data,it might be because there wasn't enough or sufficient mobile signal for a constant Internet connection,thus this forces the phone to use more power to pickup a better Internet Connection.And thats the reason why your phone might overheat.