This page demonstrates the difference between using an HTML <template> element, and hiding markup using CSS.

Use your browser's dev tools to see the page source, and watch what happens when you click the button.