CSS Portal
Run
Search
« Back to
CSS :first Pseudo Class
<p>First Page.</p> <p>Second Page.</p> <button>Print!</button> <script> document.querySelector("button").addEventListener("click", () => { window.print(); }); </script>
If this site has been useful, we’d love your support! Running this site takes time and resources, and every small contribution helps us keep creating valuable content. Consider buying us a coffee to keep things going strong!
☕ Buy a Coffee