<!DOCTYPE html> <script> var title = document.createElementNS("http://www.w3.org/1999/xhtml", "aa:title"); title.textContent = "HTML OK"; document.documentElement.firstChild.appendChild(title); </script>