The current version of the Raspberry Pi OS (1/14/2022) comes with cups and hplip installed. The defult user, pi, is a member of the lpadmin group, and there is a graphical user interface (gui) for installing printers.
If you have a modern printer, use the gui (under Preferences / Print Settings) to add your printer. Click on the Network Printers drop down arrow, and be patient. Your network printer will eventally show up. Click on your printer, and then the forward button until it is installed.
The web interface is the IP_address:631, where 631 is the port number.
Whenever Windows 10 says the printer needs attention, you have to login to the web interface and resume the printer. I do not know what causes this problem.
By default, Firewalld will block CUPS, and prevent it from finding your network printer.
To enable CUPS to find your printer and install a Linux driver, enter the following two commands:
sudo firewall-cmd --zone=internal --add-source=192.168.0.1/24 --permanent
sudo firewall-cmd --zone=internal --add-service=ipp --permanent
Reboot your computer.
Apple's AirPrint
Apple's AirPrint is a driverless printing protocol. It was introduced in 2010. It is an extension of the Internet Printing Protocol.
It was developed for Apple's IOS and MAC OS.
In most Linux distributions, Airport support should be automatic with the default printing subsystem since
version 1.4.6 CUPS severs.
Wi-Fi Direct Printing
Wi-Fi Direct printing allows your Wi-Fi cable device i.e.smart phone, tablets or computer to make a Wireless
connection directly to a printer with using a wireless router or access point.
Google's Cloud Printing
Built into Android devices is Google Cloud Printing. It allows you to print files from
any device anywhere - whether you are on the same Wi-Fi network as the printer or not.
ePrint
ePrint is a secure cloud based service that lets you print from anywhere using an email account
and active internet connection. Setting this up varies from manufactuer to manufacturer. It
works by assigning an email address to the printer. HP's ePrint work by installing HP Smart on
you phone via Apple App Store or Google Play or on your computer via Microsoft or Mac App Store.
For Linux there is EPrints which is free from https://www.eprints.org/uk/.