how to add a print button to html page code example
Example 1: print button html
onclick="window.print();return false;
Example 2: how to add print button on my website
<input type="button" value="Print this page" onClick="window.print()">
Or
<button type="button" class="print" onClick="window.print()">Print</button>