To connect an HP printer to your MacBook, you can do so either **via USB cable** or **wirelessly**.

**For USB (Wired) Connection:**
– Use a USB cable to connect your HP printer to your MacBook. If your MacBook has only USB-C ports, you may need a USB-C to USB adapter.
– On your Mac, open **System Preferences** > **Printers & Scanners**.
– Click the **+** button to add a new printer.
– Your Mac should automatically detect the connected HP printer. Select it and click **Add**.
– The required drivers will install automatically, and you can start printing immediately[3][4].

**For Wireless Connection:**
– Turn on your HP printer and use its control panel to navigate to **Network Setup** > **Wireless Settings** (or Wireless Setup Wizard).
– Select your Wi-Fi network and enter the password.
– On your MacBook, open the **Apple menu** > **System Preferences** > **Printers & Scanners**.
– Click the **+** button, find your HP printer in the list of available devices, and click **Add**.
– If needed, update your Mac’s software before searching for printers to ensure compatibility.
– Optionally, you can download the **HP Smart** app from the App Store to help with setup and management[1][2][3][4].

After adding your printer, test it by printing a document or test page to confirm successful setup.

This covers both common methods to connect an HP printer to a MacBook, whether wired or wireless. Make sure both devices are on the same Wi-Fi network if connecting wirelessly. If the printer is not detected, restarting both devices and checking cables or network settings can help resolve issues[1][3][4].