Modern electron (positron) storage rings are able to emit very intense X-ray radiation with a continuous spectrum extending to 0.1 A, from bending magnets and insertion devices (wavelength shifters and multipole wigglers). It can be used directly for white beam experiments and/or for monochromatic beam experiments with wavelength chosen at will from the continuous spectrum. Another type of insertion device, called undulator produces quasi-monochromatic radiation. The insertion devices enable the tailoring of the emitted S.R. to the requirements of the users and can be treated as the first optical element of the beam line. This feature is especially important for experiments with samples in special environment because the latter imposes limitations both on scattering and absorption experiments. However, these limitations can be minimized in each case by finding the best match between the design of the special environment, the experimental method used, and the X-ray beam tailored to the experiment with respect to wavelength. intensity, cross-section, divergence and polarization. This is discussed in some detail and illustrated by examples.