To hide taskbar right click on the taskbar. Click on taskbar settings

Open the Taskbar Behaviors (shown in green circle)

Make sure that the Automatically hide the taskbar is checked

This will hide the taskbar. Un check it if you don't want to hide it.