Diffraction of light of a visible spectral range by subwavelength metal gratings is investigated theoretically and experimentally. It is demonstrated that under certain conditions an effect of plasmon resonance occurs, at which a complete absorption of the incident radiation takes place. It is shown that the influence of the incident beam width on the diffraction efficiency is significant for the incident angles, at which the plasmon resonance occurs.