Nitric acid
..
:
..
H
O
O
O
N
:
:
..
..
Hydrogen shares 2 electrons with oxygen.
Assign 1 electron to H and 1 to O.
A neutral hydrogen atom has 1 electron.
Therefore, the formal charge of H in nitric acid is 0.
Formal charge of H