can i create html elements like <html>,<head><body> by using CreateElement() ?
<html>,<head><body>
for example let ele= document.CreateElement('html') or 'body' or 'head'
let ele= document.CreateElement('html')
NO! Its not possible because you cant add a html to a existing html document.
1.4m articles
1.4m replys
5 comments
57.0k users