Check Network Connection
Many people deal with HP printer offline problem for the network connection. They simply connect their computer & printer with different networks.
This is why they are not able to print anything from their printers & receive printer offline error message.
That’s why you need to check the connection first. Be sure your printer and computer are connected with the same network and it should ping successfully.