Although the Taj Mahal doesn't indeed have a dress code, it is still advisable to dress respectfully everywhere in India by covering your shoulders and legs. You can go for loose pants or trousers, flared flowy dresses too.