What I have to do:
Create a link (HTML <a> tag) that automatically prints the page (like if the user would have pressed CTRL + P)
Could not find a clear answer around the web. Some tend to Javascript, but is there a way to do it without using JS? (If my website falls in the hands of an old lady that for some reason doesn’t have JS activated… you never know.)
No – JavaScript is the only way to do this. You could generate a print-only version (server-side), and end up with a link such as
<a href='page.php?print=1'>print version</a>and have clear instructions on how to print it on this page.(Incidentally, an old lady is probably more likely to have JS enabled, in my experience it’s people who are more au fait with the web technologies who tend to have things like JS disabled for various reasons).