They are thought to have a small solid core, just that the vast majority of the planet is gas, just like the Sun when you get that much gas into a small area/volume the gravity crushes the atoms and molecules together making the core of a gas giant denser and may even transform hydrogen from a gas to a metal. https://youtu.be/b-gCfHXNIVc
Latest Answers