Employees in different industries may have different perspectives on this answer. But the standard practice is to break the news in person and send a written resignation letter to your immediate manager/supervisor, keeping the HR team in the loop.