The gas giants are composed of hydrogen gas from the same source as the Sun, plus (at their centres) higher "metallic" elements like the terrestrial planets. This is known from the drive-by data gathered by satellites, and by drive-into probes like the Galileo (spacecraft). There is a huge amount of data collected about each planet. The data is stored on computer files, and there are summary volumes in print.