To set up an HP printer to Wi-Fi, follow these general steps:

1. **For printers with a display screen:**
– On the printer, go to *Setup* or *Network Settings*.
– Select *Wireless Setup Wizard* from the menu.
– Choose your Wi-Fi network from the list of available networks.
– Enter your Wi-Fi password using the printer’s interface.
– Wait for confirmation that the printer is connected to Wi-Fi[1][2].

2. **If your printer and router support WPS (Wi-Fi Protected Setup):**
– Press the WPS button on your router.
– Within 2 minutes, press the WPS button on your printer.
– The printer will automatically connect without needing to enter a password[1].

3. **Using the HP Smart app (works for most printers):**
– Download and install the HP Smart app on your phone or computer connected to the same Wi-Fi network.
– Turn on the printer and make sure it is ready to connect (e.g., Wi-Fi light blinking).
– Open the app, tap *Add Printer*, and select your printer.
– Follow the prompts to choose your Wi-Fi network and enter the password.
– Finish the setup to connect the printer to Wi-Fi[3][4].

4. **For printers without a display (USB setup):**
– Connect the printer to a computer using a USB cable.
– Run the HP printer software or HP Smart app on that computer.
– Use the software’s wizard to select your Wi-Fi network and enter the password.
– Remove the USB cable once the wireless setup is complete[1].

Additional tips:
– Place the printer close to your Wi-Fi router during setup to ensure a strong signal[1][5].
– Confirm your printer is Wi-Fi capable by checking the model specifications or manual before starting[5].
– If the Wi-Fi light is not blinking before setup, press and hold the Wi-Fi and Cancel buttons on the printer to enable wireless setup mode[4].

These methods cover the typical ways to connect an HP printer to a Wi-Fi network depending on your printer model and available features. If you encounter issues, consult the HP support website or your printer manual with your model number for detailed instructions.