The length of the second fundamental form, a tangency principle and applications