To connect an 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 through the printer’s control panel.
3. Select your WiFi network from the list of available networks.
4. Enter your WiFi password when prompted.
5. Wait for the printer to establish the connection.
6. Print a test page to confirm the connection is successful[1].

If your printer and router support WPS (WiFi Protected Setup), you can connect using WPS by pressing and holding the printer’s Wireless button until the light blinks, then pressing the WPS button on your router. The printer will connect automatically[1][5].

Alternatively, you can also use the HP Smart app on your computer or mobile device to help set up the WiFi connection. Download the HP Smart app, open it, add your printer, and follow the on-screen steps to connect your printer wirelessly[3].

If your printer does not support these features, use the Wireless Setup Wizard on the printer’s control panel, typically found under Setup > Network > Wireless Setup Wizard, to select and connect to your WiFi[2].

Make sure your computer and printer are on the same wireless network during setup. Assigning a static IP to the printer can help maintain a stable wireless connection after setup[2].

These methods apply to most HP wireless printers for a smooth WiFi setup experience.