Salt in the ocean comes from two sources: runoff from the land and openings in the seafloor.

Another source of salts in the ocean is hydrothermal fluids, which come from vents in the seafloor. Ocean water seeps into cracks in the seafloor and is heated by magma from the Earth’s core. The heat causes a series of chemical reactions. The water tends to lose oxygen, magnesium, and sulfates, and pick up metals such as iron, zinc, and copper from surrounding rocks. The heated water is released through vents in the seafloor, carrying the metals with it. Some ocean salts come from underwater volcanic eruptions, which directly release minerals into the ocean.

Two of the most prevalent ions in seawater are chloride and sodium. Together, they make up around 85 percent of all dissolved ions in the ocean. Magnesium and sulfate make up another 10 percent of the total. Other ions are found in very small concentrations. The concentration of salt in seawater (salinity) varies with temperature, evaporation, and precipitation. Salinity is generally low at the equator and at the poles, and high at mid-latitudes. The average salinity is about 35 parts per thousand. Stated in another way, about 3.5 percent of the weight of seawater comes from the dissolved salts.

More Info: oceanservice.noaa.gov