While printing , the color what I gave in the box , is not coming while printing.
How to fix the color
how did you applied the color to the box? Stylesheets? And if affirmative, did you used a media print stylesheet? For example:
<link rel="stylesheet" href="/styles/print.css" media="print">
And: are you sure the print is not preset to grayscale?
What is the use of this link?
It's used to load an external resource, in this case a stylesheet with specific rules for a printer version of the HTML page, check:
The above is almost equivalent to:
<style> @import '/styles/print.css' print; </style>