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

1. **Using the Printer’s Built-in Wireless Setup Wizard:**
– On the printer’s control panel or touchscreen, go to **Setup** or **Network Settings**.
– Select **Wireless Setup Wizard**.
– Choose your Wi-Fi network from the list and enter the password using the printer interface.
– Wait for the connection confirmation (usually indicated by a solid Wi-Fi light)[1][4].

2. **Using WPS (Wi-Fi Protected Setup):**
– Press the WPS button on your wireless router.
– Within 2 minutes, press the WPS button on your HP printer.
– Wait for the printer to connect automatically; a solid Wi-Fi light typically confirms success.
– This method is fast and does not require entering the Wi-Fi password manually[1].

3. **Using the HP Smart App:**
– Download and open the HP Smart app on your smartphone or computer.
– Turn on your printer and ensure the Wi-Fi light is blinking. If not, press and hold the Wi-Fi and Cancel buttons until it blinks.
– In the app, select **Add Printer** or **New Printer** and follow the prompts.
– Select your Wi-Fi network and enter the password in the app.
– Complete the setup when the printer’s Wi-Fi light stops blinking[2][3].

4. **Using a USB Cable Setup (for printers without displays):**
– Connect your printer to a computer with a USB cable.
– Install the HP software or app on the computer.
– Use the software wizard to configure the wireless settings.
– Once connected, disconnect the USB cable[1].

Additional tips:
– Ensure the printer is within range of the Wi-Fi router (preferably on a 2.4 GHz network) to avoid connectivity issues[1][4].
– You do not necessarily need an internet connection, just access to the local Wi-Fi network[4].
– If the printer doesn’t show your network, try moving it closer to your router or restart the router[4].

This guidance applies to a broad range of HP printers including DeskJet, Envy, and others. If you need model-specific instructions, consult the printer’s user manual or the HP support site.