There is no specific dress code while on vacation to Tanah Lot.  In contrast, if you want to enter the area within the Tanah Lot temple, it is only allowed if you want to pray and must wear a sarong, a shirt covering the shoulders and a scarf.