You can also try the CTRL+SHIFT+ESC shortcut. Right-click on the taskbar and select Task Manager.
It only takes a few seconds and will solve the taskbar not hiding error in Windows 10. And also, restarting it is a lot faster/easier than having to restart Windows 10 completely. Restarting Windows Explorer usually helps solve a lot of issues. Windows Explorer is the main process that shows the entire UI to the user and lets them interact with Windows. On some keyboards (especially laptops), you might have to press Fn+F11 keys together to activate Windows Fullscreen Mode. No matter what app or screen you are currently in, Windows will go fullscreen hiding the taskbar. The F11 key is the universal shortcut key for all Windows versions and works flawlessly. SEE ALSO 9 Tips To Fix 100% Disk Usage Issue On Your Windows PC