text: In hydrohalogenation, an alkene reacts with a dry hydrogen halide (HX) electrophile like hydrogen chloride () or hydrogen bromide () to form a mono-haloalkane. The double bond of the alkene is replaced by two new bonds, one with the halogen and one with the hydrogen atom of the hydrohalic acid. Markovnikov's rule states that under normal conditions, hydrogen is attached to the unsaturated carbon with the most hydrogen substituents.  The rule is violated when neighboring functional groups polarize the multiple bond, or in certain additions of hydrogen bromide (addition in the presence of peroxides and the Wohl-Ziegler reaction) which occur by a free-radical mechanism.
  Alkenes also react with halogens (X) to form haloalkanes with two neighboring halogen atoms in a halogen addition reaction. Alkynes react similarly, forming the tetrahalo compounds. This is sometimes known as "decolorizing" the halogen, since the reagent X is colored and the product is usually colorless and odorless.