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.
2.1m questions
2.1m answers
60 comments
57.0k users