Transposons: genes that are able to change its position in the genome. It can jump from a plasmid to the bacterial chromosome, or vice versa. (Plasmid can be exchanged between bacteria so if one bacteria evolved resistance, it can transfer the plasmid to another bacteria.)
Gene cassette: genes that are able to wrap itself into a circular form, and is also able to transfer from one bacteria to another.