Your printer will display as "offline" if it can't communicate with your PC. Check to make sure the printer is turned on and connected to the same Wi-Fi network as your PC.
If you're still having trouble printing, try uninstalling and reinstalling your printer driver by going to Start > Settings > Devices > Printers and scanners. Select the printer and then select Remove Device. Then reinstall your printer.