You must give at least a week’s notice if you’ve been in your job for more than a month.
Your contract will tell you whether you need to give notice in writing - otherwise you can do it verbally.
Give written notice if you think you’ll need to refer to it later, eg at an employment tribunal.