<html> <body> <template id="template"> <img src="pass.png" alt="Alt Text" /> </template> <script> document.body.appendChild(document.getElementById('template').content.children[0].cloneNode(1)); </script> </body> </html>