In high school we are taught that Zeeman and Stark effect directly lead to the findings of further divisions of an electron's shell in an atom.
What is exactly the reason that causes the spectral lines of an atom to split when an external magnetic or electric field is applied ?
And in what ways does this explain the existence of subshells?