How to move Taskbar to top or side on Windows 11

After years of complaints, Windows 11 can finally move the Taskbar again.