X-ray specular reflectivity and diffuse scattering techniques are presented and illustrated with experimental results obtained on different kinds of thin films and surfaces. After a short introduction on the Fresnel reflectivity, the matrix technique is developed; the kinematical Born approximation is then deduced from the dynamical theory. In this approximation it is shown how the diffuse scattering contribution can be analysed.