A good question! Strong gravity holds the gas planets (such as Jupiter) together. However, they do not have enough mass that nuclear fusion could start to produce energy in its core like in Sun. Gas planets do not have a clear surface, the atmosphere just gets thinner and thinner.
Emilia