Covalent bonds are between two non-metals. Hydrogen and oxygen are non-metals. Hence is is, "yes, hydrogen and oxygen are nonmetals."
For the future, you might want to look at some videos to help you! :) (Tyler DeWitt is a really good chem you-tube teacher!)
I need to get my stuff back in my room I don’t have a big deal
C- K4O8 and K2O4
K4O8/4 =KO2
K2O4/2 =KO2
Remember the saying: King Henry Drinks Dark Chocolate Milk. (KHD|DCM)