<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
It can be annoying to receive the error message "HP printer offline." However, it does not imply that your printer is damaged. When a printer is offline, it is unable to communicate with the source of the print job.
Also Check Out:https://www.reddit.com/user/printerservice114/comments/y7tf5q/steps_for_hp_printer_offline_fix/