Genetics is the science that studies heredity, or the passing of traits from parents to offspring. Traits are passed through DNA, which is made up of four chemical bases that form the genetic code. DNA is packaged into chromosomes that are found in almost every cell and contain the full set of instructions to produce a human. Genes located on chromosomes provide templates for proteins and determine traits based on dominant and recessive alleles inherited from each parent.