I have a specific structure on my HTML page:
<html>
<head></head>
<body>
<nav>
.... navigation menu
</nav>
<div>
<div></div>
<div class="to-print">
<h2>The designated div for print mode display<h2>
<section>
<article>....content....</article>
</section>
</div>
<div></div>
</div>
<div>
.... More HTML elements here
</div>
</body>
</html>
When it comes to printing the page, I aim to have only the content from the DIV that has the class to-print
displayed. What steps should I take to achieve this printing behavior?