Creating a with javascript createElement? August 25, 2023 by Tarik The first method does not need to pass XHTML standards – you’re confusing markup with manipulating the DOM.