You have your printer is showing offline that means there is only one problem, when it can not get connected with your PC. Just follow some basic steps now:
Select Start > Settings > Devices > Printers & scanners. Then select your printer > Open queue.
Read More:
hp printer password reset