I found this link that might answer the question for you on how the ocean because salty. I found it quite interesting. here's the link
http://ga.water.usgs.gov/edu/whyoceansalty.html enjoy the read.
Salt is a mineral, part of soil I think. So, rivers flowing wash all that salt into the ocean where it accumulates and then the water tastes like salt.