Why seawater is salty?

when the rain falls on the land it flows into to the river and the rivers flows for longer distance so it absorbs some minerals in the soil and atlast it drains into the sea. Hence the sea contains some dissolved compounds. So it tastes salty.