Answer:
Most farts are made up of nitrogen, carbon dioxide, hydrogen, and methane. A person who swallows a lot of air might also have some oxygen in their farts. The stink in a fart comes from various sulfur chemicals made by bacteria living in your intestines - hydrogen sulfide and mercaptan are two of these.
(see related questions)