To begin we note that oxidation number and oxidation state, are FORMALISMS....i.e. there is nothing fundamental about them...they are used to help us balance chemical equations....especially redox equations.
Rules of assignment (and clearly I have prepared these earlier!) are:
#1.# #"The oxidation number of a free element is always 0."#
#2.# #"The oxidation number of a mono-atomic ion is equal"# #"to the charge of the ion."#
#3.# #"For a given bond, X-Y, the bond is split to give "X^+# #"and"# #Y^-#, #"where Y is more electronegative than X."#
#4.# #"The oxidation number of H is +1, but it is -1 in when"# #"combined with less electronegative elements."#
#5.# #"The oxidation number of O in its"# compounds #"is usually -2, but it is -1 in peroxides."#
#6.# #"The oxidation number of a Group 1 element"# #"in a compound is +1."#
#7.# #"The oxidation number of a Group 2 element in"# #"a compound is +2."#
#8.# #"The oxidation number of a Group 17 element in a binary compound is -1."#
#9.# #"The sum of the oxidation numbers of all of the atoms"# #"in a neutral compound is 0."#
#10.# #"The sum of the oxidation numbers in a polyatomic ion"# #"is equal to the charge of the ion."#
SO I will go thru TWO examples.....the oxidation number of sulfur in sulfuric acid, and the oxidation number of nitrogen in nitric acid....
For #H_2SO_4# the sum of the oxidation numbers is ZERO...(rule 9). From rule 4, and rule 5, #2xx+1+4xx(-2)+S_"oxidation number"=0#...and so #S_"oxidation number"=+VI#...
For #HNO_3^+#, #+1+3xx(-2)+N_"oxidation number"=0#...and so #N_"oxidation number"=+V#...
Can you tell us the oxidation number of chlorine in chloric, #HClO_3#, and perchloric acids, #HClO_4#? The hydrogen is BOUND to the oxygen....