The electromagnetic field is quantized on the basis of the complete set of spatial modes of a plane dielectric slab of arbitrary thickness and refractive index but infinite transverse dimensions, located in otherwise empty three-dimensional space. The vacuum field fluctuations and spontaneous emission rates are evaluated as functions of position both inside and outside the slab. The source-field operator is derived for emission by atoms inside the slab, in the direction perpendicular to its surfaces. Particular attention is given to the possibility of suppressing spontaneous emission by placing atoms in, or close to, a dielectric slab.