In Windows 10, the taskbar can still be moved to different edges of the screen (top, left, right, bottom). In Windows 11, this option has been removed and the taskbar is fixed to the bottom.
For Windows 11, the only way to influence this behavior is to submit feedback so Microsoft can track and consider restoring the feature. Use the Feedback Hub app (press Win+F) and file a suggestion about taskbar positioning.
References: