Henry Moseley improved Mendeleev's periodic table by reorganizing the elements by what property?

A number of energy shells

B nonmetals, metals, and metalloids

C electronegativity

D number of protons in the nucleus