Naming alkenes, alcohols and haloalkanes

A functional group changes the name's ending (ene, ol) or adds a prefix (bromo, chloro), and the chain is chosen to contain the main group and numbered to give it the lowest number.

From Organic Chemistry.