How does carbon dioxide in Earth's atmosphere contribute to the greenhouse effect?
A) Carbon dioxide conducts heat from Earth to outer space.
B) Carbon dioxide traps heat radiated from Earth's surface.
C) Carbon dioxide reflects most of the sun's rays back into space.
D) Carbon dioxide absorbs most of the sunlight that reaches Earths atmosphere.