On Windows 11, Enable autohide and press the Windows key like you're going to search for something. This will display the taskbar. You can also press the Win+T if you don't want the search window to open.