In fact it is illegal in the UK to fit a plug socket in a bathroom unless it is 3 metres from the bath and shower.
Almost. This refers to the fact that UK uses 240 volts for sockets.
Sockets at a lower rating for electric razors etc. are permitted, and are often incorporated into light fittings (over mirrors etc.)