These are the compounds where the halogen group is attached to a hybridised carbon atom next to the carbon which is already in a double bond with another carbon atom.
In both and mechanisms, these halides are reactive.
Some common examples are 1-chlorobut-2-ene , 1-bromohex-2-ene , etc.
Therefore, 1-chlorobut-2-ene is an example of allylic halides.