Create Element in JS

image

2 Likes

document.createElement(β€œh1”)

1 Like

document.innerHTML = β€œ

DOM

”;

1 Like

document.innerHTML=β€œDOM”;

document.CreateElement(β€œh1”)

document.innerHTML=β€œ

DOM

”;

document.createElement(β€œheading1”);

document.createElement(β€˜h1’);

document.createElement(β€˜h1’)

document.innerHTML="

document.createElement(β€œh1”);

1 Like