Hydrocarbons are basically those compounds that are formed by the combination of carbon and hydrogen. hydrocarbons can be either in long-chain form, branch form, and ring form. These hydrocarbons are categorized into two categories such as aliphatic hydrocarbon and aromatic hydrocarbons. In short form, hydrocarbons are carbon and hydrogen-containing compounds. for example methane, Ethane, propane, butane, etc. Now the question is how hydrocarbon is formed. The hydrocarbons are basically formed by the combination of hydrogen and carbon as you all know that carbon has a valency of four and hydrogen has a valency of one because one electron revolves around the nucleus in the hydrogen atom. similarly, in a carbon atom, four electrons revolve around the nucleus in their second shell. Carbon has a valency of 4 because it completes its octet by taking four electrons and hydrogen has a valency of one which makes carbon and 4 hydrogens interact with each other and the formation of a new compo