Hong Kong airport is on an island. There is nothing else on that islands except an exhibition center and related activities (ferry terminal, hotel, …). In order to go anywhere interesting, you need to cross to the neighboring island of Lantau, Tung Chung being the first neighborhood when going from the airport to anywhere overland. While I think there is a pedestrian walkway along the western road bridge, I doubt that it's a pleasant walk (though a Wikivoyage contributor describes it as “nice” — I'm guessing this refers to the view rather than the ambiance), and it's a minimum of 4km from the airport terminal to the town (more like 5km to get anywhere interesting). You can check Google Maps (complete with Street View).
With only two hours' layover, taking account the time to go through security, you do not have time to walk. If the two hours are rounded down, you may have time, but walking isn't the best use of your time.
There are frequent buses between the airport and the Tung Chung MTR station, but they are not especially fast. If you take a bus, note that you can you can only pay by Octopus card or exact change. You can buy an Octopus card at the airport, but I don't remember if you can pay with a foreign credit card, and it has a HK$150 minimum value (you can redeem the unused portion afterwards minus a small charge; in comparison the return bus fare is HK$7).
The fastest way to get across to Tung Chung is a taxi. You'll need cash for that.