To connect an HP printer, you can do it **wirelessly via WiFi** or **wired through USB**.

**Wireless connection (WiFi):**

1. Place your HP printer within range of your WiFi.
2. Power on the printer and access its wireless setup menu.
3. Select your WiFi network from the available list.
4. Enter your WiFi password when prompted.
5. Wait for the printer to connect to the network; typically, the WiFi light will stop blinking when connected.
6. On your computer or mobile device, use the HP Smart app or printer setup options to add the printer and complete the installation.
7. Print a test page to confirm connection.

Alternatively, you can use **WiFi Protected Setup (WPS)** if your router supports it by pressing the WPS button on your router and the printer to connect automatically [1][2][5].

**Wired connection (USB):**

1. Connect the USB cable from your HP printer to your laptop or desktop computer.
2. Your system will usually detect the new device and start installing drivers automatically.
3. If necessary, open Windows Settings > Devices > Printers & Scanners > Add a printer, then select your HP printer.
4. Follow any on-screen prompts to complete installation.
5. Print a test page once installed [3][5].

**Using the HP Smart app** (available on Windows, macOS, Android, iOS) simplifies setup by detecting your printer and guiding connection steps either wirelessly or USB [2][4].

In summary, connecting an HP printer involves powering it on, selecting the connection mode (WiFi or USB), ensuring your device and printer are on the same network for wireless, and installing necessary drivers/software via HP Smart or your system settings. Testing after setup confirms successful connection.