In the words of Paul Simon:
Just slip out the back, Jack
Make a new plan, Stan
You don't need to be coy, Roy
Just get yourself free
Hop on the bus, Gus
You don't need to discuss much
Just drop off the key, Lee
And get yourself free
From Fifty ways to leave your lover :-)
I have given notice exactly twice in my career and in both cases, I started by verbally telling my boss.
I was then asked to put it in writing as well in the form of an email.