To connect an HP printer, you can use either a **wireless Wi-Fi connection** or a **wired USB connection**, depending on your setup and preference.

**Wireless Connection to Wi-Fi:**

1. **Place the printer near your Wi-Fi router** and power it on.
2. Access the printer’s **wireless setup menu** via its control panel.
3. Select your **Wi-Fi network (SSID)** from the list of available networks.
4. Enter your **Wi-Fi password** when prompted.
5. Wait for the printer to connect and verify by printing a test page.
6. For easier setup, you can also use **Wi-Fi Protected Setup (WPS)** by pressing the wireless button on the printer until the light blinks, then pressing the WPS button on your router to establish the connection.

Alternatively, using the **HP Smart App** (available on Android and iOS) can guide you through the wireless setup by detecting your printer and helping connect it to Wi-Fi.

**Wired USB Connection to a Computer:**

1. Connect your HP printer to your laptop or computer with a **USB cable**.
2. Your computer should automatically detect the printer and download necessary drivers.
3. If not detected, go to your computer’s device settings, go to **Printers & scanners**, and select **Add a printer or scanner** manually.
4. Select your printer from the list and complete the installation by following the on-screen instructions.

These methods allow you to connect your HP printer to your device for printing both wirelessly and through USB cable connection[1][2][3][4][5].