Sample on 🌎 https://avivsab.github.io/JS-DO-HTML/
JavaScript creating all page elements with the createElement method indise one root element.
Using the DOM API directly is much faster then changing HTML, it does not have to invoke the HTML parser and to rerender all the elements/tags contents.