A little example from Mozart:
Some examples of connecting V7 and inversions to I:
LT means leading tone
7 means the seventh of the dominant chord.
NB Pay attention to the arrows: tritone resolving to a sixth or a third, except...
NB Pay attention to the presence or absence of the fifth in V and I!