Here is a good and short explanation: Why is the ocean salty? To make it simple: Main inputs for salt (ions) are: runoff (rain and river) and hydrothermal vents (deep sea volcanoes). read more
Satellite view of La Plata River discharge to the Atlantic Ocean. One way minerals and salts are deposited into the oceans is from outflow from rivers, which drain the landscape, thus causing the oceans to be salty. read more
Here is an even simpler answer: The salt in the ocean comes from rocks on land. Because of the dissolved carbon dioxide in rain water which then becomes carbonic acid, rain water is slightly acidic. The slightly acidic rain dissolves the various minerals, including salt and is carried to the sea by rivers and other waterways. read more