en.javascript.info icon indicating copy to clipboard operation
en.javascript.info copied to clipboard

HOW to create html tags using javascript

Open neon-script opened this issue 2 years ago • 0 comments

const h2= document.createElement('h2'); h2.setAttribute('id', 'heading1'); h2.setAttribute('class', 'heading11'); document.body.appendChild(h2);

neon-script avatar Jan 03 '24 14:01 neon-script