Go to Settings > Tap 'Network & internet' > Wi-Fi
Toggle on the Wifi option
Scroll down to tap 'Add network'.
Enter the SSID (the network name) and security details.
Save the settings.