Why is the ocean salty?

Rivers carry dissolved minerals to the sea, and water evaporates leaving salt behind.