Do the names of some elements have anything to do with planets? There are elements like neptunium and plutonium in the periodic table. Did their discovery have anything to do with Neptune and Pluto? Or are they randomly assigned with such names?
Neptunium (93) and plutonium (94) were so named because they followed uranium (92) on the periodic table.

Uranium was named after Uranus. German chemist Martin Heinrich Klaproth discovered uranium in 1789, eight years after William Herschel discovered Uranus. At the time, uranium was the densest element known and Uranus was the farthest planet from the sun known.