Hydrocarbons can be simply defined as organic substances with a molecular structure made up only of hydrogen and carbon atoms.
They are three types saturated hydrocarbon, unsaturated hydrocarbon, aliphatic hydrocarbon, and aromatic hydrocarbon.
Saturated hydrocarbon consists only of a carbon-carbon single bond.
Unsaturated hydrocarbon consists of carbon-carbon double or triple bond.
Compounds with hydrogen and carbon connected together in a chain, ring, or other non-aromatic structure are known as aliphatic hydrocarbons.
Aromatic hydrocarbons are compounds having a benzene ring attached to them.
Ethanol:
Alcohols are chemical molecules in which a hydroxyl group is present in place of a hydrogen atom of aliphatic carbon.
As a result, an alcohol molecule is divided into two parts, one of which has an alkyl group and the other of which contains the functional group hydroxyl group.
Ethanol or ethyl alcohol is an organic compound. It is an alcohol with a molecular formula .
A hydroxyl group () linked to the carbon atom of the ethyl group's( (hydrocarbon chain)
Only one carbon-carbon bond exists in ethanol. It is a saturated hydrocarbon
Therefore, ethanol is a hydrocarbon because it has a hydroxyl group in place of the hydrogen atom of aliphatic carbon.