To connect your HP printer to WiFi, follow these general steps:

1. Place the printer within range of your WiFi network.
2. Power on the printer and access its wireless setup menu, often found under Network or Wireless settings on the printer’s control panel or screen.
3. Select your WiFi network name (SSID) from the list of available networks.
4. Enter your WiFi password when prompted.
5. Wait for the printer to establish the wireless connection.
6. Print a test page to confirm the connection.

If your printer has a touchscreen, use the Wireless Setup Wizard by navigating to Network > Wireless > Wireless Setup Wizard; then select your network and input the password[1][4].

Alternatively, you can use the HP Smart App (available for iOS and Android) to connect your printer to WiFi. The app guides you through finding your printer, selecting the WiFi network, entering the password, and completing the setup[2].

If your router supports WPS (WiFi Protected Setup), you can connect by putting your printer into WPS mode and pressing the WPS button on your router, enabling automatic connection without entering a password[1][3].

After connecting, ensure your computer or device is on the same WiFi network to print wirelessly.

These methods apply broadly to most HP wireless printers, but exact steps may vary by model[1][3][4].