Are speed bumps legal?

The difference between speed bumps and speed humps

Are speed bumps legal?