Genes determine traits like eye color or height, and alleles are the variations of those genes. For example, a gene for eye color may have alleles for brown or blue eyes. Each person inherits two alleles for each gene—one from each parent—which combine to influence how the trait appears.