Résumé : Magnetic fields of order 10^15 G have been measured at the surface of some neutron stars, and much stronger magnetic fields are expected to be present in the solid region beneath the surface. The effects of the magnetic field on the equation of state and on the composition of the crust due to Landau-Rabi quantization of electron motion are studied. Both the outer and inner crustal regions are described in a unified and consistent way within the nuclear-energy density functional theory.