Genes code for traits.
Example:
"Hair color" is a trait. There are many different varieties of hair colors (blond, brown, black, etc.). Therefore, there are multiple genes responsible for the trait of hair color (a blond hair gene, a brown hair gene, a black hair gene, etc.).
Hope this helps!!