The paper is devoted to the analysis of electroencephalography (EEG) in neonates. The goal is to investigate the impact of fontanels on EEG measurements, i.e. on the values of the electric potential on the scalp. In order to answer this clinical issue, a complete mathematical study (modeling, existence and uniqueness result, realistic simulations) is carried out. A model for the forward problem in EEG source localization is proposed. The model is able to take into account the presence and ossification process of fontanels which are characterized by a variable conductivity. From a mathematical point of view, the model consists in solving an elliptic problem with a singular source term in an inhomogeneous medium. A subtraction approach is used to deal with the singularity in the source term, and existence and uniqueness results are proved for the continuous problem. Discretization is performed with 3D Finite Elements of type P1 and error estimates are proved in the energy norm (H 1-norm). Numerical simulations for a three-layer spherical model as well as for a realistic neonatal head model including or not the fontanels have been