To connect to WiFi on a device, the user first clicks the WiFi icon and selects the option to view all available networks. This will display local networks like the name of the location. The user selects the desired network and enters the password which is not displayed in the document for privacy. Once connected, the device will be able to access the internet and navigate online.