Which elements make up a water molecule?

A) hydrogen and nitrogen
B)oxygen and nitrogen
C) oxygen and carbon
D) hydrogen and oxygen