If it's a long time since you had chemistry lessons, you can refresh your knowledge here.
The most common hydrocarbons are shown in this animation. After all, natural gas and oil are to a large extent made up of molecules which mainly consist of only carbon and hydrogen atoms.
Further subjects from this special: