At some point during the formation of the sun, enough pressure builds up inside to allow ignition of its fusion fuel (mostly hydrogen). As the sun heats up it begins emitting radiation and the ejection of particles (solar wind). It’s this combination of stuff (light and particles) that pushes lighter gases out of the near orbital region (where the rocky planets formed). Those gases make their way out beyond the asteroid belt and get picked up by the forming gas giants. At the same time, the heavier dust and rocks don’t get pushed very far by the sun and instead get accumulated in the rocky inner planets.
This pattern is more or less consistent around all stars we see out there. Of course, it varies in strength based on the amount of radiation and particles emitted by the star and that is a complex topic all by itself. But I hope the basic picture I’ve given here is informative.
What causes the initial stage to form a disc (rather than a progressively more dense cloud/sphere/blob)? Just the rotation? (In which case, where’s the rotation come from?)
Gas giants are indeed mostly gas and then gases liquefied and solidified by the very high pressures inside as you go down and eventually a bit of a rocky core.
If you were indestructible you would "land" on an ocean of liquid hydrogen, but because of the high pressures there won't necessarily be a well defined surface but a transition between gas-like qualities and liquid-like qualities. Go down and eventually you get to a solidified hydrogen, a few other things, and somewhat of a rocky core.
https://www.reddit.com/r/askscience/comments/12eggw/seeing_a...
For example, Jupiter is thought to have a solid core composed of solids twice as dense as earth's core. On top of this is a ocean of liquid metallic hydrogen. On top of that is the gas phase atmosphere.
https://sciencing.com/jupiters-core-vs-earths-core-21848.htm...
https://en.wikipedia.org/wiki/Frost_line_%28astrophysics%29
Gas giants are formed out there. Outside the frost line many bodies contain a lot of water (as much as 50%!)
Whenever I think about planets, I think about a big rock you can land on, but if Jupiter and Saturn are made entirely of gas, landing on them is a non-sequitur, correct?
Do most planets start out as gas giants? Does the effect of gravity over epochs compress them into rocky planets? How should we think about them in terms of our solar system? In how we explore? In how we colonize?