There is a dress code for entering The Grand Palace. It does not appear directly from the image, but bare feet are forbidden. If you wear sandals or flip-flops, you need to wear socks. It is possible to rent clothing at the entrance if you have left without suitable attire.
Read more in the article Venice of the East.