To connect your HP Smart Tank 5101 printer to Wi-Fi, follow these steps based on the detailed setup process demonstrated in the official guidance video:

1. Turn on your HP Smart Tank 5101 printer.
2. Press and hold the Information button until all the printer’s lights turn on, then release it.
3. Immediately press and hold the Wireless button and the Cancel button simultaneously for about 3 seconds, then release. The wireless light should start flashing along with a blue light indicating the printer is in Wi-Fi setup mode.
4. On your smartphone or tablet, open the HP Smart app (download it from the Apple App Store or Google Play Store if you don’t have it).
5. In the app, tap the plus (+) button or “Set up a new printer” and select your printer model (Smart Tank 5100 series).
6. Enter your Wi-Fi network password when prompted and tap continue.
7. Press the flashing Information button on the printer panel as requested in the app.
8. Continue following the prompts until the app confirms your printer is connected to Wi-Fi.
9. You can then sign in or create an HP account, enable auto updates, and finish the setup.

Once complete, the printer will appear in your devices list, showing ink levels and enabling wireless printing and scanning [source 1].

Additionally, if you want a direct device-to-printer connection without Wi-Fi network (Wi-Fi Direct), you can enable that feature by pressing the Wi-Fi button on the printer until the Wi-Fi Direct icon appears, then use that connection from your phone or PC without needing a router [source 3].

This method has been demonstrated clearly in multiple videos from reliable tech channels specializing in HP printers, confirming its accuracy and practical effectiveness.