To connect an HP printer to Wi-Fi, you can use one of the following primary methods:

1. **Using the Printer’s Built-In Wireless Setup Wizard** (for printers with a display)
– On the printer’s control panel, navigate to **Setup** or **Network Settings**.
– Select **Wireless Setup Wizard**, then choose your Wi-Fi network from the list.
– Enter your Wi-Fi password using the printer interface.
– Wait for the confirmation that the printer is connected to the network[1][5].

2. **Using the HP Smart App** (recommended for most newer models)
– Make sure the printer is on and the Wi-Fi light is blinking.
– Download and install the **HP Smart app** on your smartphone or computer.
– Open the app, add your printer by following the prompts, select your Wi-Fi network, and enter the Wi-Fi password.
– The app will complete the wireless connection setup[2][3][4].

3. **WPS (Wi-Fi Protected Setup) Method** (if supported by your router and printer)
– Press the **WPS** button on your router.
– Within two minutes, press the **WPS** button on your printer.
– Wait for the printer to connect automatically (indicated by a solid Wi-Fi light). No password entry needed[1].

4. **USB Setup Method** (for printers without a display)
– Connect the printer to a computer via USB.
– Use the HP software or HP Smart app on the computer to configure the wireless settings.
– Once connected, disconnect the USB cable[1].

Additionally, ensure that:
– Your printer is within range of your Wi-Fi router.
– Your Wi-Fi network operates on a 2.4 GHz band (most HP printers do not support 5 GHz).
– You have the latest HP printer software or drivers installed for the best compatibility[1][5].

If connection issues occur, check your router settings for MAC filtering or potential blockages, and try restarting both your printer and router[5].