To connect an HP printer to Wi-Fi, you generally follow these steps:

1. **Power on the printer** and make sure it has paper and ink.
2. **Ensure your phone or computer is connected to the desired Wi-Fi network.**
3. Use one of the following methods to connect the printer:

– **Using the HP Smart app:**
– Download and install the HP Smart app on your phone or computer.
– Open the app and sign in or create an HP account.
– The app should detect your printer automatically. If not, add it manually.
– Go to “Printer Settings” > “Network Setup.”
– Select your Wi-Fi network and enter the password.
– Tap “Connect”—your printer should connect to Wi-Fi[1][3].

– **Using the printer’s control panel wireless setup wizard:**
– On the printer, access the Setup or Network menu.
– Open the Wireless Setup Wizard.
– Select your Wi-Fi network and enter its password.
– Wait for the printer to connect to the network[2][4].

– **Using WPS (Wi-Fi Protected Setup) if your router supports it:**
– Put the printer in WPS connection mode.
– Press the WPS button on your router.
– The printer will connect automatically without needing a password[2][4].

After connecting, print a test page to confirm the connection works.

These procedures are valid for most HP wireless printers, including DeskJet and OfficeJet models. If you encounter issues, HP’s official support resources can help troubleshoot connectivity problems[2].

In sum, the easiest and most common way is to use the HP Smart app to detect and connect your printer to the Wi-Fi network quickly[1][3].