Which of the following correctly compares genes and DNA?
A: Traits are carried on genes which are not segments of DNA.
B: Traits are carried on genes which are segments of DNA.
C:Genes are carried on traits which are not segments of DNA.
D:Genes are carried on traits which are segments of DNA.