<div id="htmlExmaple"></div> <script> const htmlExmaple= document.getElementById('htmlExmaple'); const render=()=>{ htmlExmaple.innerHTML=` <div> <h3>html Example</h3> <input /> <div>${new Date()}</div> </div> `; } setInterval(render,1000) </script>