To connect an HP printer to your computer, you can use either a **USB cable connection** or a **wireless (Wi-Fi) connection** depending on your printer model and preference.

**For USB Connection:**

1. Connect the USB cable from the printer to your computer.
2. Turn on both the printer and the computer.
3. Your computer should recognize the printer automatically. If not, go to *Settings* > *Devices* > *Printers & scanners* on Windows and select *Add a printer*.
4. If needed, install the HP drivers or software from the HP website or the installation CD.
5. Wait for confirmation that the printer is ready, then print a test page[1][3].

**For Wireless Connection:**

1. Download and install the **HP Smart app** from Microsoft Store (Windows) or the app store on your device.
2. Open the HP Smart app and select *Add Printer*.
3. Make sure your printer is powered on and connected to the same Wi-Fi network as your computer.
4. The app will search for available printers; select your HP printer from the list.
5. Follow the on-screen instructions to complete wireless setup.
6. You can then print wirelessly from your computer[2][3].

**Additional recommendations:**

– For USB, use a good quality USB cable and ensure drivers are up to date.
– For Wi-Fi, ensure your network has a stable connection and you know the SSID and password.
– You can also install software directly from HP’s setup website by entering your printer model (e.g., 123.hp.com)[1][3].

This method applies to Windows 10/11 and macOS with slight variations in the interface but the same general steps.

If you specify your printer model and computer OS, I can provide more tailored instructions.